Computer Science, asked by Ruler12345, 8 months ago

Write a program to accept a number and print the last digit.
Input= 285
Output = 5

Answers

Answered by Yamini1999
0

Answer:

#include<iostream>

using namespace std;

int main()

{

int r,n;

cin>>n;

r = n%10;

cout<<r;

}

Answered by kaminimistry0577
0

Answer:

I don't know ur question.

Similar questions