0 LIKES LikeUnLike
Dear friends, one of my friends asked me a programming puzzle yesterday, but I dont know the answer!We have a piece of code in C++ language:#include <iostream> using namespace std; int main() { int a; cin >> a; if ( ( a == -a ) && ( a != 0) ) cout << ":-o" << endl; return 0; } If we want the program print something as an output on the monitor, what should we give as an input???!
Tags:
Report (0) (0) | earlier
Latest activity: earlier. This question has 1 answers.