C Program Print Numbers Between Starting and Ending Numbers
Output:
Enter starting Number=51
Enter ending Number=70
All Numbers between 51 and 70 are:
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
C Code / C Program Print Numbers Between Starting and Ending Numbers
#include<stdio.h> int main() { int starting,ending,n; printf("Enter starting Number="); scanf("%d", &starting); printf("Enter ending Number="); scanf("%d", &ending); printf("All Numbers between %d and %d are:\n",starting, ending); for(n=starting;n<=ending;n++) printf("%d\n", n); return 0; }