#what is wrong with my line 14 and how can i fix it.

1 messages · Page 1 of 1 (latest)

brittle stratus
#

Please read the #📄・posting-guidelines

azure sphinx
#

alr

#

"c++
// variables lab 1A
#include <iostream>

using namespace std;

int main() {
//Arithmitic

int add = 5+2;
int sub = 5-2;
int mul = 5*2;
int div = 5/2;
int mod = 5%2;
double div = 5.0/2.0;

cout << "5 + 2 = " << add << endl
<< "5 - 2 = " << sub << endl
<< "5 * 2 = " << mul << endl
<< "5 / 2 = " << div << endl
<< "5 % 2 = " << mod << endl
<< "5.0 / 2.0 = " << div << endl;

return 0;
}