write a program that accepts a numerical value x from 0 to 100 as input and cmpu
ID: 1849707 • Letter: W
Question
write a program that accepts a numerical value x from 0 to 100 as input and cmputes and displays the corresponding letter grade given by the following table. A x >= 90 B 80<=x<=89 C 70<=x<=79 D 60<=x<=69 F x<60 a. Use nested if statement in your program(do not use eslseif) b. Use only elseif clauses in your program.Explanation / Answer
b) #include void main() { int x=0; printf("enter x: "); scanf("%d",&x); if(x>=90) printf("A"); elseif(x=80) printf("B"); elseif(x=70) printf("C"); elseif(x=60) printf("D"); elseif(x100||x=90) { if(x=80) { if(x=70) { if(x=60) { if(x100||xRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.