Write a program to print digit from 1 to 10
Input:
1 2 3 4 5 6 7 8 9 10 11 | #include <stdio.h> #include <conio.h> void main(void) { clrscr(); int count; for (count = 1; count <= 10; count++) printf("%d \n", count); getch(); } |
Result:
1 2 3 4 5 6 7 8 9 10
No comments:
Post a Comment