Displaying ./code/cs256su21code/jun01/count4.c/* similar to count.c but we are specifiying the start and the end of where we are counting to. */ #include <stdio.h> int main() { int num, start, end; printf("Starting Number: "); scanf("%d", &start); printf("Ending Number: "); scanf("%d", &end); num = start; while(num <= end){ printf("%d\n", num); num++; } return 0; } |