230k views
0 votes
Write a program to print grade according to percentage which is entered by the user at run time.​

User Boredgames
by
4.5k points

1 Answer

2 votes

Step-by-step explanation:

pseudo code

var A=90%

var B=80%

var C=70%

var F=60%

var input=input

if(input>=A){

console.log(" A")

}

if(input>=B){

console.log(" B")

}

if(input>=C){

console.log(" C")

}

if(input>=F){

console.log("F")

}

User Ian McMahon
by
4.5k points