Help!!!!!!!!!!!

This is a discussion on Help!!!!!!!!!!! within the C Programming forums, part of the General Programming Boards category; This won't work and I've tried it every which way possible! #include <stdio.h> main() { int val; /* declare the ...

  1. #1
    Unregistered
    Guest

    Talking Help!!!!!!!!!!!

    This won't work and I've tried it every which way possible!


    #include <stdio.h>

    main()
    {
    int val; /* declare the value of the range */

    printf("\nDisplay Range: 100 thru 1:\n");

    /* For Loop and Display */

    for (val = 100; val <= 1; val+=1)

    printf("\n%d\n", val);
    }

  2. #2
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    Posts
    2,572
    /* For Loop and Display */

    for (val = 100; val !=0; val--)

    printf("\n%d\n", val);
    }
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21