9th Oct 2017, 3:03 PM
zoufisha khan
4 Answers
+ 15
First, let me clutter that up a bit! #include <iostream> using namespace std; int main() { int a = 100; int b = 99; int c = 40; int d = 1; int e; e = ((a % b) % c) / d; // ((100 % 99) % 40) / 1 // (1 % 40) / 1 // 1 / 1 // 1 cout << e; // 1 }
9th Oct 2017, 3:36 PM
Babak
Babak - avatar
+ 8
e=((a%b)%c)/d; Try to use BODMAS rule % stands for modulo or remainder
9th Oct 2017, 4:01 PM
Apoorva Shenoy Nayak
Apoorva Shenoy Nayak - avatar
+ 4
Start with the brackets. You should get the answer.
9th Oct 2017, 3:08 PM
Manual
Manual - avatar
+ 1
thanx
10th Oct 2017, 2:50 PM
zoufisha khan