Answer to Question #6846 in C++ for Lali

Question #6846
C++ code that input an integer and display last digit of the integer
1
Expert's answer
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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS