How to write a C Program print fill zero & mod/div in C Programming Language ?
Solution For C Program :
/*C Program print fill zero & mod/div.*/
#include <stdio.h>
int main(){
/*
Integer division: cut back
Remainder: cut in front
*/
int a = 12000678;
printf("%d", (a / 1000000) % 1000);
printf(",");
printf("%03d", (a / 1000) % 1000);
printf(",");
printf("%03d", a % 1000);
return 0;
}