0

What am I doing worng?

#include <iostream> using namespace std; int main() { //addiction cout << "Addiction" << endl; int a; cout << "Enter the first number"<<endl; cin >> a; int b; cout << "Enter the second Number"<<endl; cin >> b; int c=a+b; cout <<"Acording to Kevin the result is:"<<c<<endl; //addiction //subtraction cout << "Subtriction"<<endl; int d; cout <<"Enter First number"<<endl; cin >>d; int e; cout <<"Enter second number"<<endl; cin >> e; int f=d-e; cout "According to Kevin the result is:"<<f<<endl; //subtractin return 0; } This is my atempt to do a calculator machine.and it gives me a error.Can you guys tell me whats worng?

19th Jul 2017, 6:14 PM
Kevin Paresh
2 ответов
+ 1
line no 29 << is missing after cout
19th Jul 2017, 7:02 PM
‎ ‏‏‎Anonymous Guy
0
Thank you
20th Jul 2017, 10:20 AM
Kevin Paresh