0 0 ADMIN 2 Asked: November 19, 20212021-11-19T17:41:33+05:30 2021-11-19T17:41:33+05:30In: Programming Language C Program to print Last Digit of a Given Number 0 0 Print Last Digit of a Given Number Share Facebook 1 Answer Voted Oldest Recent JonSnow07 2021-11-19T18:23:51+05:30Added an answer on November 19, 2021 at 6:23 pm //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 Attachment Leave an answerCancel replyYou must login to add an answer. Username or email* Password* Remember Me! Forgot Password?
//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