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