Computer Science, asked by srnroofing1717, 6 hours ago

main()
{
int i = 10,j ==0
if ((j-i)%10==0)
printf ( "MAN");
else
printf ("GOD");
}​

Answers

Answered by anindyaadhikari13
4

\texttt{\textsf{\large{\underline{Corrected C{o}de}:}}}

#include <stdio.h>

int main() {

   int i=10,j=0;

   if((j-i)%10==0)

       printf("MAN");

   else

       printf("GOD");

   return 0;

}

Language: C

\texttt{\textsf{\large{\underline{O{u}tput}:}}}

MAX

\texttt{\textsf{\large{\underline{Explanation}:}}}

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 srnroofing171711
0

Answer:

\huge\mathfrak\green{60}

Similar questions