#include<stdio.h>
int main(){
int n,m;
int count = 0;
scanf("%d" "%d", &n, &m);
for(n=m;n>0;n=n/10);
printf("%d\n",count++);
return 0;
}
How can I do this with this main code or I just need something edit? I struggled how to can it be count like this sample:
Sample Input 1 (standard input)
1 5
Sample Output 1 (standard output)
1
2
3
4
5