Search:

Type: Posts; User: bummielove

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    1,174

    Got it! Thanks! :)

    Got it! Thanks! :)
  2. Replies
    2
    Views
    1,174

    Input Numbers

    Hello again guys!
    So I've been working on a program that accepts 2 inputs a & b
    and does the following:
    Get another b number of inputs ,may contain negative nos and
    print the largest and the...
  3. Thread: while

    by bummielove
    Replies
    32
    Views
    3,667

    Noted! :)

    Noted! :)
  4. Thread: while

    by bummielove
    Replies
    32
    Views
    3,667

    I got it. thanks to all those who helped. :)...

    I got it. thanks to all those who helped. :) YAAAAAAAAY! :D
    Here's my code

    counter = 2;
    ans1=a;

    while (counter <=b)
    {
    ans1 = ans1 + a;
    counter++;
  5. Thread: while

    by bummielove
    Replies
    32
    Views
    3,667

    when does one set a counter = 0 and =1?

    when does one set a counter = 0 and =1?
  6. Thread: while

    by bummielove
    Replies
    32
    Views
    3,667

    Last one : I really find loops confusing. :| ...

    Last one : I really find loops confusing. :|


    counter = 0;
    ans1=a;

    while (counter <=b)
    {
    ans1 = a + ans1;
    b++;
  7. Thread: while

    by bummielove
    Replies
    32
    Views
    3,667

    add "a" "b" times.

    add "a" "b" times.
  8. Thread: while

    by bummielove
    Replies
    32
    Views
    3,667

    so for example, a=3 and b =2 ans = 3+3. My...

    so for example, a=3 and b =2
    ans = 3+3.
    My problem is how to begin the loop. :(
  9. Thread: while

    by bummielove
    Replies
    32
    Views
    3,667

    while(x

    while(x<=b)
    {
    e1=e1+a;
    x++;
    }

    for(x=1;x<=a;x++)
    e2=e2*x;
    for(x=1;x<=b;x++)
    e3=e3*a;
  10. Thread: while

    by bummielove
    Replies
    32
    Views
    3,667

    Thank you. :)

    Thank you. :)
  11. Thread: while

    by bummielove
    Replies
    32
    Views
    3,667

    Honestly, I dont know what to do. :(

    Honestly, I dont know what to do. :(
  12. Thread: while

    by bummielove
    Replies
    32
    Views
    3,667

    while

    hi guys. im having a hard time figuring this out. could someone help me please?
    How could I write the code for

    Product of a & b with the use of addition operator only.

    Thanks. :)
  13. Replies
    8
    Views
    1,219

    #include int main () { int x =...

    #include <stdio.h>

    int main ()
    {

    int x = 1, y = 1, b;


    printf("What value for b did you enter? ");
    scanf("%d", &b);
  14. Replies
    8
    Views
    1,219

    Oh.... Sorry bout that. Thank you. Such a genius,...

    Oh.... Sorry bout that. Thank you. Such a genius, (.m^m.)
    That didn't helped. That was a practice code. Of course I know how to count.
  15. Replies
    8
    Views
    1,219

    counter = 1; b = 1; do { printf("%d\n",...

    counter = 1;
    b = 1;
    do {
    printf("%d\n", counter);
    }while (counter <=b);
    b++;

    This. :) It only prints single numbers.
  16. Replies
    8
    Views
    1,219

    A little help please

    Here is something that I can't figure out... How can I make a program that prints a

    Number triangle with height = b
    Example: b=5
    Output is
    55555
    4444
    333
    22
    1
  17. Replies
    23
    Views
    3,122

    Should I use int void ?

    Should I use int void ?
  18. Replies
    23
    Views
    3,122

    OKAY GUYS.... I'm a bit confused. Which should I...

    OKAY GUYS.... I'm a bit confused. Which should I use now? :)
  19. Replies
    23
    Views
    3,122

    Thank you for the tip! THAAAAAAAAANKS! :)

    Thank you for the tip! THAAAAAAAAANKS! :)
  20. Replies
    23
    Views
    3,122

    Thank You Sir!

    Thank You Sir!
  21. Replies
    23
    Views
    3,122

    That's what I needed! Thank you Tim S! \m/...

    That's what I needed! Thank you Tim S! \m/ Thanks! Thanks to those who helped me here! :)
  22. Replies
    23
    Views
    3,122

    When I'm trying to run the program, it keeps on...

    When I'm trying to run the program, it keeps on displaying " error: called object 4 is not a function" There.
  23. Replies
    23
    Views
    3,122

    Thanks! :)

    Thanks! :)
  24. Replies
    23
    Views
    3,122

    When I'm trying to run the program, it keeps on...

    When I'm trying to run the program, it keeps on displaying " error: called object 4 is not a function" There.
  25. Replies
    23
    Views
    3,122

    Need help. Can't identify error.

    Beginner here. This is the first program I made. There seems to be an error. Please help me fix it. Thanks.



    #include <stdio.h>

    int main()
    {
    int a, b, c, ans1, ans2, ans3, ans4, ans5;...
Results 1 to 25 of 25