Program to print first 1000 number
Input:-
Output:-
Code :-
#include <stdio.h>
int main()
{
int c=1;
while (c <= 1000)
{
printf("%d ", c);
c++;
}
return 0;
}
Input:-
Output:-
Code :-
#include <stdio.h>
int main()
{
int c=1;
while (c <= 1000)
{
printf("%d ", c);
c++;
}
return 0;
}
0 Comments:
Post a Comment