Pages

Thursday, October 13, 2011

Odd Numbers Being Looped

#include
#include
#define s scanf
#define p printf
int main( )
{
int a, b, c;

p("Enter number amount of odd: ");
s("%d", &b);

for(a=1; a<=b; a++)
{
c = a + a - 1;
p("%d\n", c);
}
getch( );
}

No comments:

Post a Comment