how to splite a number in c language
Answers
Answered by
1
Split number into digits in c programming, Extract digits from integer in c language
int num,temp,factor=1;
printf(“Enter a number: “);
scanf(“%d”,&num); temp=num;
while(temp){ temp=temp/10; ...
printf(“Each digits of given number are: “);
while(factor>1){ factor = factor/10;
printf(“%d “,num/factor); ...
Enter a number: 123.
please follow me ❤
Similar questions