Computer Science, asked by omkarausarkar7005, 1 year ago

Write a program to find the last digit of a number

Answers

Answered by sswaraj04
1

Answer:

Explanation:

#include <iostream>

using namespace std;

int main()

{

int a;

cin>>a;

int dig=a%10;

cout<<dig;

}

Similar questions