Thread: Help!!!!!!!!!!!

  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