The expression bc 2 c 1 may result in an errorall variabl

The expression ((b/c == 2) && (c > 1)) may result in an error(all variables are ints). Correct it (as simply as possible) so that it doesn\'t.

Solution

Please use below highlighted expression :

#include <iostream>
using namespace std;

int main ()
{   
int b=6,c=3;
  
if(((b/c)==2) && (c>1))
cout << \"True\";
else
cout << \"False\";
return 0;
}

 The expression ((b/c == 2) && (c > 1)) may result in an error(all variables are ints). Correct it (as simply as possible) so that it doesn\'t.Soluti

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site