#include %26lt;iostream%26gt;
int Add (int x, int y)
{
std::cout %26lt;%26lt; "In Add(), received " %26lt;%26lt; x %26lt;%26lt; " and " %26lt;%26lt; y %26lt;%26lt; "\n";
return (x+y);
}
int main()
{
using std::cout;
using std::cin;
cout %26lt;%26lt; "Calculate!\n";
int a, b, c;
cout %26lt;%26lt; "Press Two Numbers: ";
cin %26gt;%26gt; a;
cin %26gt;%26gt; b;
cout %26lt;%26lt; "Press Enter\n";
cout %26lt;%26lt; "\nCalculating...\n";
c=Add(a,b);
cout %26lt;%26lt; "\nUr Answer: " %26lt;%26lt; c;
cout %26lt;%26lt; "\nExiting...\n\n";
return 0;
}
What is wrong with this c++ code?
u r joking
there is nothing wrong with that.
it is working.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment