Search:

Type: Posts; User: benrogers

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    8
    Views
    4,297

    Reverse string question - for loop

    Could someone please explain exactly what the for statement in this problem is doing step by step?



    #include <stdio.h>
    #include <string.h>

    int main()
    {
    char string[100],...
  2. Replies
    5
    Views
    1,469

    Thanks a lot cas, jimblumberg and itsme86!

    Thanks a lot cas, jimblumberg and itsme86!
  3. Replies
    5
    Views
    1,469

    Simple string problem

    I would like to create a program where a user inputs their first and last name and the program say it to the user, but my program is only showing the first name.

    Any help is greatly appreciated....
  4. is the square roote function eg: b= a * a, c = b...

    is the square roote function eg: b= a * a, c = b / a ?
  5. this is what I have so far int main () {...

    this is what I have so far



    int main ()
    {
    double d, mult, asqrt;

    printf("Please enter in a double: \n");
    scanf("%f", &d);
  6. Replies
    8
    Views
    1,482

    Yes what does void count_to_ten ( int count )...

    Yes what does
    void count_to_ten ( int count ) even mean?
  7. Creating a program without using any libraries

    Is it possible without using any standard library functions, to create a function called asqrt that calculates the square root of a double. Then create a program (this is the same question) that...
  8. Replies
    8
    Views
    1,482

    I've read 10 recursion tutorials and they are all...

    I've read 10 recursion tutorials and they are all based on the same examples. Does anyone know how I can change my code to output all the numbers not just to 1st?

    I am looking for my program to do...
  9. Replies
    8
    Views
    1,482

    So I just read the tutorial and it was no help....

    So I just read the tutorial and it was no help. PLEASE EXPLAIN!!
  10. Replies
    8
    Views
    1,482

    Basic recursion question

    Without using any loops, I need to create a function that will use recursion to print all the multiples of a given number up to any limit given (the limit will be given to the function by the...
  11. Replies
    2
    Views
    1,164

    Thanks for the help for (b = a; b < 1000; ...

    Thanks for the help



    for (b = a; b < 1000; b += a)

    Works like a charm!!
  12. Replies
    2
    Views
    1,164

    Simple for loop question

    I need to create a program using a for loop that will read in an integer, and print all the multiples of that integer up to 1000. e.g. given 7, will print 7, 14, 21, 28...(until the end)

    This is...
  13. Replies
    11
    Views
    1,138

    Alright fixed that. Updated code: ...

    Alright fixed that.

    Updated code:



    #include <stdio.h>


    int main()
  14. Replies
    11
    Views
    1,138

    Thanks for this. - when entering either 1,2...

    Thanks for this.

    - when entering either 1,2 or 3 it always says the number is either odd or even.
    - when entering 1 it does not show the remainder.

    when the number 3 is entered everything is...
  15. Replies
    11
    Views
    1,138

    #include int main() { int x, y,...

    #include <stdio.h>

    int main()
    {
    int x, y, z;
    double d;

    printf("Please enter in 1, 2 or 3: ");
    scanf("%d", &x);
  16. Replies
    11
    Views
    1,138

    first off my program wont even compile.

    first off my program wont even compile.
  17. Replies
    11
    Views
    1,138

    Dimple problem with if/else and looping

    I have to create a program that takes one integer (the value of the integer will be 1, 2, or 3). The program behaves differently depending on the value of the integer. If the number is 1, then get...
  18. Replies
    9
    Views
    1,754

    Loop problem?

    I have to write a program that takes one integer and follows these rules. First, print this number. When the number is even, change the number to itself divided by 2. Print the resulting number. ...
  19. Replies
    13
    Views
    1,843

    Thank you for for this. I appreciate the comments.

    Thank you for for this. I appreciate the comments.
  20. Replies
    13
    Views
    1,843

    Can you please explain the while loop?

    Can you please explain the while loop?
  21. Replies
    13
    Views
    1,843

    Simple if/else statement problem

    I have to create a program that will read integer numbers from the user, one at a time. It will print these numbers out after reading them. It will continue to read numbers until it receives the...
  22. Replies
    3
    Views
    3,843

    bold does the trick. #include ...

    bold does the trick.



    #include <stdio.h>

    int main()
    {
    int x, y, z;
  23. Replies
    3
    Views
    3,843

    Basic if else question

    I have to create a program that takes 2 numbers. If the first number is equally divisible by the second number, then print the number of times it's divisible, otherwise, print a message saying "not...
  24. Replies
    4
    Views
    1,260

    c) 4.5 is the answer.

    c) 4.5 is the answer.
  25. Replies
    4
    Views
    1,260

    Reading the program/output question

    int main()
    {
    int x = 5;
    double d = 3.5;
    double y = 2;

    while (x > 3)
    {
    printf(“%d\n”, x);
    d += (x % 2);
Results 1 to 25 of 34
Page 1 of 2 1 2