Write a program to find the last digit of a number
Answers
Answered by
1
Answer:
Explanation:
#include <iostream>
using namespace std;
int main()
{
int a;
cin>>a;
int dig=a%10;
cout<<dig;
}
Similar questions
Computer Science,
6 months ago
Math,
6 months ago
English,
6 months ago
Computer Science,
1 year ago
Biology,
1 year ago