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; }
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
0
This looks good yeah thanks