0

why i chnages from 1000 to 656??

#include <stdio.h> int main() { int arr[6]; int a=656598; int ind=9,r; for(int i=1000;i>=1;i/=10){ r=a/i; a-=r*i; arr[ind]=r; ind--; printf("%d\n",i); } return 0; }

6th Mar 2022, 1:21 PM
Nadir Nadir
Nadir Nadir - avatar
5 odpowiedzi
0
Thanks yeah i fixed the arr length and it works I will change that on the main code and see of it works
6th Mar 2022, 1:39 PM
Nadir Nadir
Nadir Nadir - avatar
0
This looks good yeah thanks
6th Mar 2022, 4:48 PM
Nadir Nadir
Nadir Nadir - avatar