Analyze the following two code fragments.
(i)
int x = 5;
if (0 < x) && (x < 100)
cout << "x is between 1 and 100";
(ii)
int x = 5;
if (0 < x && x < 100)
cout << "x is between 1 and 100";
Analyze the following two code fragments. (i) int x = 5; if (0 < x) && (x < 100) cout << "x is between 1 and 100"; (ii)
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am