Computer Science, asked by khushi1308, 10 months ago

Write a program to assign percentage marks of a student and print "Pass"
or "Fail" using ternary operator. (>=40% is pass).​

Answers

Answered by krrish202
1

Student=(marks>=40%)?Pass:Fail;

Answered by sanasikandar111
0

Answer:

using if function in exel

Explanation:

type =if(

then type cell address

i.e a4:d4

then enter criteria

ie ‹50

then inside inverted commas type fail

"fail"

then inser comma ,

then in inverted commas type "pass"

i.e =if((a4:d4)‹50,"fail","pass")

Similar questions