WAP to enter a number and print its last digit
Answers
Answered by
1
Answer:
C Program to find first and last digit of a given number using loop:
#include <stdio.h>
int main()
{
int n, sum=0, firstDigit, lastDigit;
printf("Enter number = ");
scanf("%d", &n);
// Find last digit of a number.
lastDigit = n % 10;
Explanation:
follow me and Mark me braineist..
Similar questions