+ 1
Why does my code not execute
It opens but then closes instantly
11 Respostas
+ 1
Can you give the code?
+ 1
yes
0
#include <iostream>
using namespace std;
int main()
{
cout << âcalculator\n\nâ;
int a = 12 ;
int b = 13 ;
int sum = a + b;
cout << âpls select num\n\nâ;
cin a;
cout << âpls select num\n\nâ;
cin b;
cout << sum;
return 0;
0
}
0
cin >> a;
You forget >>
0
wait sorry i added those in just phone typing error
0
but still not working
0
Why you input a and b after they do nothing with sum?
0
starts for one sec then closes
0
try
system("pause");
before return 0;
or try to delete exe file and compile again.
0
thatnks so much