C PROGRAM TO PRINT FROM N TO LESS THAN 16
Consider the following I/O samples.
SAMPLE INPUT: 10
SAMPLE OUTPUT: 10 11 12 13 14 15
C PROGRAM:
#include<stdio.h>
int main()
{
int n,i;
scanf("%d",&n);
printf("\n");
for(i=n;i<16;i++)
{
printf("%d ",i );
}
return 0;
}
OUTPUT:
The given source code in C program "to print N to less than 16" is short and simple to understand. The source code is well tested in DEV-C++ and is completely error free.
If you have any feedback about this article and want to improve this, please comment in the comment section.
Comments
Post a Comment