Computer Science, asked by yjain0277, 1 day ago

find error C language
#include

int main()

{
int name, regno, marks;
printf("Enter your Name\n");
scanf("%d", &name);
printf("Enter your provisional registration number\n");
scanf("%d", &regno);
printf("Enter your percentage marks in LPUNEST or in CLASS 12\n");
scanf("%d", &marks);

if (marks>=90)
printf("You have received 50% scholarship");
else if (marks>=80)
printf("You have received 40% scholarship");

else if (marks>=70)
printf("You have received 30% scholarship");

else
printf("Not Eligible for Scholarship ");


return 0;
}

Answers

Answered by kumarshiv08
0

Answer:

int name, regno, marks;

printf("Enter your Name\n");

scanf("%d", &name);

printf("Enter your provisional registration number\n");

scanf("%d", &regno);

printf("Enter your percentage marks in LPUNEST or in CLASS 12\n");

scanf("%d", &marks);

if (marks>=90)

printf("You have received 50% scholarship");

else if (marks>=80)

printf("You have received 40% scholarship");

else if (marks>=70)

printf("You have received 30% scholarship");

else

printf("Not Eligible for Scholarship ");

Answered by arjun18436
0

Answer:

Answer is attached above

Hope it helps

Attachments:
Similar questions