Search:

Type: Posts; User: n00by

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    7,197

    vertical bar graph

    hello,
    how can i print out a bar graph like this:


    *
    * * * *
    * * * * * *
    * * * * * *
    * * * * * *
    0 1 2 3 4 5
  2. Replies
    7
    Views
    1,816

    no, i want to know why it does that. why it...

    no, i want to know why it does that. why it doesn't print out the 1.
  3. Replies
    7
    Views
    1,816

    missing output with for loop?!?!?

    hello again. this is a real n00b question but why doesn't the "1.0" show up with this code?

    #include <stdio.h>

    main()
    {
    float x;

    for( x = 0; x <= 1.0; x += .1 )
    printf( "%.1f ",...
  4. Replies
    20
    Views
    6,171

    hi again. just to update, i found out a solution...

    hi again. just to update, i found out a solution to my problem. all i had to do was add a space before the %c in the scanf statement.


    scanf(" %c", &x);

    this makes the scanf read all the white...
  5. Replies
    20
    Views
    6,171

    if you input "s" or "c" and then input a number,...

    if you input "s" or "c" and then input a number, it prints out the table but then it also prints out "(S)ine, (C)osine, or (Q)uit: -- Illegal Input" and then it waits for you to press enter and then...
  6. Replies
    20
    Views
    6,171

    #include #include main()...

    #include <stdio.h>
    #include <math.h>

    main()
    {
    int count;
    float ctr,a;
    char x,s,S,c,C,q,Q;

    do{
  7. Replies
    20
    Views
    6,171

    i still don't get it. what can i do/change/add to...

    i still don't get it. what can i do/change/add to the code?
  8. Replies
    20
    Views
    6,171

    What's wrong with my code (HELP)

    hi, can you guys help me out with this portion of code. I don't know what's wrong with it.
    #include <stdio.h>
    #include <math.h>

    main()
    {
    int count;
    float ctr,a;
    char x,s,S,c,C,q,Q;
  9. Thread: help on roman.c

    by n00by
    Replies
    1
    Views
    1,157

    help on roman.c

    hi, how can i get this program to function properly. if "IX" is entered, i get 11 instead of 9. i wanted to write an equation where if the one letter was smaller than the next (IX), then subtract 2...
  10. Replies
    5
    Views
    1,557

    hi, how can i get this program to function...

    hi, how can i get this program to function properly. if "IX" is entered, i get 11 instead of 9. i wanted to write an equation where if the one letter was smaller than the next (IX), then subtract 2...
  11. Replies
    5
    Views
    1,557

    thanks that worked. :)

    thanks that worked. :)
  12. Replies
    5
    Views
    1,557

    Help Please. Char Arrays

    hi, i have to write a program that converts roman numerals to regular numbers and it takes all the info from the commandline, like so: "% roman MMIV".
    here is what takes the input.

    int main(int...
  13. Replies
    1
    Views
    19,719

    finding mode of an array

    hi can someone please explain how to find the mode of an array. i have a program that takes input until EOF. then the program takes the inputs, finds the mean, median, mode, and standard deviation. i...
  14. Thread: robot step sizes

    by n00by
    Replies
    2
    Views
    2,055

    robot step sizes

    hi again. i have a question on how to get my program to work. my program is to see how many steps a robot can take to get to a certain distance. the user inputs 3 step sizes and the distance. then,...
  15. Replies
    1
    Views
    1,206

    keeping values of scanf

    i was wondering if it is possible to have a scanf in a for loop and keep each value the user inputs? how can i store each value the user inputs?
    i need to keep each value because the program takes...
  16. Thread: sin graphs

    by n00by
    Replies
    20
    Views
    2,474

    thank you. i'll mess with it to try to get it...

    thank you. i'll mess with it to try to get it right.
  17. Thread: sin graphs

    by n00by
    Replies
    20
    Views
    2,474

    i wasn't precise with the *'s but something of...

    i wasn't precise with the *'s but something of that nature.
  18. Thread: sin graphs

    by n00by
    Replies
    20
    Views
    2,474

    no i mean like this ***** *********...

    no i mean like this



    *****
    *********
    *************
    *****************
    *******************
    ********************
  19. Thread: sin graphs

    by n00by
    Replies
    20
    Views
    2,474

    sin graphs

    hi how can i print a sin graph from 0 to PI with "*" using nested for loops. i am a beginner and i need help.
Results 1 to 19 of 20