For example, I got a simple code as below:
#include<stdio. h>
int main(){
int a=15073;
printf("The last three digit number for 'a' is %d \n", (a%1000));
return 0;
}
Output
-------------------------------
The last three digit number for 'a' is 73.
My question is how to display the '0' (zero) value, which display '073' instead of '73' only?
#include<stdio. h>
int main(){
int a=15073;
printf("The last three digit number for 'a' is %d \n", (a%1000));
return 0;
}
Output
-------------------------------
The last three digit number for 'a' is 73.
My question is how to display the '0' (zero) value, which display '073' instead of '73' only?
Comment