+ 2
How it's executed??
4 Respostas
+ 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
}
+ 8
e=((a%b)%c)/d;
Try to use BODMAS rule
% stands for modulo or remainder
+ 4
Start with the brackets.
You should get the answer.
+ 1
thanx