Computer Science, asked by mreema2002, 4 months ago

what is the error in each of the following statements?
(a) if(m==1 & n!=0)
printf("OK");
(b) if(x=<5)
printf("JUMP");​

Answers

Answered by BrainlyProgrammer
2

Answer:

Question:

  • To find out an error

Code 1:-

if(m==1 & n!=0) //Syntax error

printf("OK");

Correct Code:-

if(m==1 && n!=0)

printf("OK");

Code 2:-

if(x=<5) //Syntax error

printf("Jump");

Correct Code:-

if(x<=5)

printf("Jump");

Similar questions