A program Using % operator
1 2 3 4 5 6 7 8 9 10 11 12 | #include<stdio.h> int main() { int n,a,b; n=456; printf("n=%d\n",n); a=n/100; n=n%100; b=n/10; n=n%10; printf("n=%d%d%d",n,b,a); } |
A blog about programming languages and this Blog specially Create for learning languages like C language,C++ Language, Data Structure and Algorithm.
1 2 3 4 5 6 7 8 9 10 11 12 | #include<stdio.h> int main() { int n,a,b; n=456; printf("n=%d\n",n); a=n/100; n=n%100; b=n/10; n=n%10; printf("n=%d%d%d",n,b,a); } |
Post a Comment