Write a program to accept a number and print the last digit.
Input= 285
Output = 5
Answers
Answered by
0
Answer:
#include<iostream>
using namespace std;
int main()
{
int r,n;
cin>>n;
r = n%10;
cout<<r;
}
Answered by
0
Answer:
I don't know ur question.
Similar questions
Social Sciences,
4 months ago
Math,
4 months ago
Computer Science,
4 months ago
Math,
10 months ago
English,
10 months ago