Created
August 10, 2017 17:25
-
-
Save echo-akash/b60d8f9cb47be6f6e76df9c7757fda46 to your computer and use it in GitHub Desktop.
Print the unit and tenth place value of a number.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
int main() | |
{ | |
int n; | |
printf("enter the number:"); | |
scanf("%d",&n); | |
printf("unit place:%d",n%10); | |
printf("\nten's place:%d",(n/10)%10); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment