Answer to Question #6846 in C++ for Lali
C++ code that input an integer and display last digit of the integer
1
2012-02-23T11:49:09-0500
#include <iostream>
using namespace std;
void main()
{
int num, res;
cout << "Enter the integer: ";
cin >> num;
res = num;
cout << res << endl;
}
Need a fast expert's response?
Submit order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Learn more about our help with Assignments:
C++
Comments
Leave a comment