Hi to everyone, I started programming in c cause i have nothing else to do so i studied it using the book "THE C PROGRAMMING LANGUAGE 2nd edition by Brian W. Kerningham and Dennis Ritchie...now the problem is this....
Code:
#include <stdio.h>
#include <stdlib.h>
main()
{
int start, end, count;
printf("Input first number\n");
scanf("%d", &start);
printf("Input second number\n");
scanf("%d", &end);
for(count = "%d", start; count <= "%d", end; count++)
printf("%d");
system("pause");
}
all i want is that when i input like for ex. 1 for my start number 10 for my end number it will count 1 2 3 4 5 6...10 but i can't figure it out......help needed