5th Apr 2017, 2:28 PM
EZAIER Yassine
EZAIER Yassine  - avatar
4 Answers
- 2
thnkyouuuu
5th Apr 2017, 2:45 PM
EZAIER Yassine
EZAIER Yassine  - avatar
+ 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 }
5th Apr 2017, 2:44 PM
Shamima Yasmin
Shamima Yasmin - avatar
0
but not work
5th Apr 2017, 2:57 PM
EZAIER Yassine
EZAIER Yassine  - avatar
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
5th Apr 2017, 3:08 PM
Eranga
Eranga - avatar