Pages

Monday, January 2, 2012

C Programming to display all odd numbers from 1 to 100


/*to display odd numbers upto 100*/
#include<stdio.h>
#include<stdlib.h>
int main( )
{
    int i;
    for (i=1; i<=100; i+=2)
        printf ("%d\t",i);
    system ("pause");
    return 0;
}

No comments:

Post a Comment