Computer Science, asked by itsmeaarfa082, 6 months ago

What will be the output of following pseudocode?
Integer a,b,count,counti
Set a=1, b=1
while(a<=5)
b=1
while(b<=5)
b=b+1
counti = count1 + 1
end while
a= a + 1
count = count +1
End while
Print count, counti​

Answers

Answered by shilpa85475
0

Syntax error: No public class.

Explanation:

  • The variables that are declare as Integer a,b,count and counti is wrong.
  • The integer variables are always declare as int.
  • one can never declare the variables as set a and b
  • The variables need to be declare as int a, b.
  • The end of while should be declared as end while not End while.
  • The print statement also needs to be corrected.
  • The public class needs to be included along with public static void main (String args[])

Similar questions