Print Last Digit of a Given Number
Share
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.
//C program to find last digit of a given number
#include <stdio.h>
int main()
{
int number, lastdigit;
printf(“\n Please Enter Any Integer Number : “);
scanf(“%d”, & number);
lastdigit = number % 10;
printf(” \n The Last Digit of the Given Number %d is = %d”, number, lastdigit);
return 0;
}
#To get output download Attachment