What will be the output of the following pseudocode for input a = 30, b = 60, C = 90?Integer a, b, c, sum Read a, b, c Set sum = a + b + c if ((sum EQUALS 180) and (a NOT EQUALS 0) and (b NOT EQUALS 0) and (c NOT EQUALS 0)) Print " Success" Otherwise Print "Fail" End ifQuestion 84AnswerA.Error in logic of the pseudocodeB.FailC.SuccessD.None of the mentioned
Question
What will be the output of the following pseudocode for input a = 30, b = 60, C = 90?Integer a, b, c, sum Read a, b, c Set sum = a + b + c if ((sum EQUALS 180) and (a NOT EQUALS 0) and (b NOT EQUALS 0) and (c NOT EQUALS 0)) Print " Success" Otherwise Print "Fail" End ifQuestion 84AnswerA.Error in logic of the pseudocodeB.FailC.SuccessD.None of the mentioned
Solution
C.Success
Similar Questions
Time left 0:54:08HideQuestion 87Not yet answeredMarked out of 1.00Flag questionTipsQuestion textWhat will be the output of the following pseudocode for input a = 30, b = 60, C = 90?Integer a, b, c, sum Read a, b, c Set sum = a + b + c if ((sum EQUALS 180) and (a NOT EQUALS 0) and (b NOT EQUALS 0) and (c NOT EQUALS 0)) Print " Success" Otherwise Print "Fail" End ifQuestion 87AnswerA.FailB.SuccessC.None of the mentionedD.Error in logic of the pseudocode
What will be the output of the following pseudocode?1. input f=6, g=9 and set sum=02. integer n3. if ( g>f)4. for (n=f ; n<g ; n=n+1)5. sum = sum+n6. end for loop7. else8. print error message 9. print sum921156
What will be the output of the following Pseudocode? int a=9, b=7, c=8, d=4, e e = (a + b + c + d) / 4 if (e >5) print "PASS" else print "FAIL"FAIL01PASS
What will be the output of the following pseudocode?Integer xSet x = 2if(x is EQUAL TO 1)if(x IS EQUAL TO 0)Print “A”elsePrint “B”end ifelsePrint “C”end ifQuestion 82AnswerA.B CB.CC.AD.B
What will be the output of the following Pseudocode?. int a=10, b=4, i. if (a+b>14). print a. else . for(i=1 to 3 ). a = a+i. end for loop. print a4101614
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.