0

How to use multiple arithmetic operators in one line?

#include <iostream> using namespace std; int main() { int x = 40 + 60; cout << x; return 0; } How should I write code using multiple arithmetic operators in one line?

12th Sep 2018, 1:06 PM
kp kalia
kp kalia - avatar
1 Answer
+ 2
For example int x = 6 + 4 - 6 + 5*7 - 7/4?
12th Sep 2018, 3:40 PM
Ledio Deda
Ledio Deda - avatar