Answers for "find last digit of number"

C++
0

code to find the last digit of a number

int n;
cout<<"Enter the number";
cin>>n;
int LD= n % 10;
cout<<LD<<endl;
Posted by: Guest on February-21-2021
1

find last digit of number

//C++
int last_digit = number % 10;
Posted by: Guest on September-30-2020

Code answers related to "find last digit of number"

Browse Popular Code Answers by Language