main()
{
int i = 10,j ==0
if ((j-i)%10==0)
printf ( "MAN");
else
printf ("GOD");
}
Answers
Answered by
4
#include <stdio.h>
int main() {
int i=10,j=0;
if((j-i)%10==0)
printf("MAN");
else
printf("GOD");
return 0;
}
Language: C
MAX
Here, we are given with two variables:
> i = 10
> j = 0
Condition given:
> (j - i) % 10 == 0
On evaluating the condition:
> (0 - 10) % 10 == 0
> -10 % 10 == 0
As -10 is completely divisible by 10:
> -10 % 10 = 0
Therefore:
> 0 == 0 which is true.
As the condition is true, if-block will execute.
So, output - MAN
See attachment for verification.
Attachments:
anindyaadhikari13:
Thanks for the Brainliest ^_^
Answered by
0
Answer:
Similar questions