Computer Science, asked by muskang011502, 6 months ago

A=0
B=0
C=0
while(pile 1 has more cards)
Read the top card X in pile 1
if(X.towncity= ="Chennai")
if(X.date of birth<"1 May") {
if (X.totalmarks> A) {
A=X.total marks
}
if (X.total marks> B) {
B= X. totalmarks
}
}
else {
C=C+1
}
move X to pile 2

Answers

Answered by sidhant014
1

the output is going to be an error because here are you didn't returned anything

Similar questions