- 2
4 odpowiedzi
- 2
thnkyouuuu
+ 19
#include <iostream>
using namespace std;
int main() {
int x,y;
cout<<"enter number x";
cin>>x; // you forgot to take input of x
cout<<"enter number y";
cin>>y; // you forgot to take input of y
cout<<(x+y);
// double quote " " will not print the sum, it'll print x+y
}
0
but not work
0
#include <iostream>
using namespace std;
int main() {
int x,y;
cout<<"enter number x:";
cin>>x;
cout<<"enter number y:";
cin>>y;
cout<<(x+y);
}
use below as input.in CodePlayground u have to enter input parameters at once(separated by new line) Copy paste both numbers on popup input Window.
4
7