Computer Science, asked by shilpakj8, 5 hours ago



Find error in this program:

int main()
{
float score;
printf("enter ur marks\n");
scanf("%f" ,&score);
if(score<50)
printf("failed");
else if(score>=50&&score<60)
printf("your grade is third division");
else if(score>=60&&score<70)
printf("your grade is second division");
else if(score>=70&&score<80
printf("your grade is first division");
else
printf("your grade is honours");

return 0;
}

Answers

Answered by souravsarkar045
1

Answer:

Mark as brainliest.

Explanation:

You have to use header file at the top of the program.

The header file is #include<stdio.h>

Answered by PriyamBorthakur
2

Answer:

In the first line A line is missed that is

# include <stdio.h>

Explanation:

Other every thing is ok in the programm

Similar questions