|
|
вернуться в форумIs there any wrong in my code for this problem #include<iostream> using namespace std ; int main() { int a, b ; cout<<"Plz enter two numbers: "<<'\n' ; cin>> a >> b ; cout<<"Here is your output: "<< a + b <<'\n' ; return 0 ; } what's the wrong!!! I've written this code in c++ and submitted under visual c++2010 but they don't accept it..why????? Re: Is there any wrong in my code for this problem Because you write some text in output. Remove all text. #include<iostream> using namespace std ; int main() { int a, b ; cin>> a >> b ; cout<< a + b ; return 0 ; } Like this Re: Is there any wrong in my code for this problem thanks for your answer :) Re: Is there any wrong in my code for this problem =)) |
|
|