October 22, 2024
Chicago 12, Melborne City, USA
C#

How to emulate a do-while loop?


Is there a Python equivalent of do… while loop? Python has try…except loop, while True loop, etc.

I have tried anything but no one corrects

C:

int main {
  int y;
  do {
    scanf("%d",&y);
  } while (y>0);
  return 0;
}



You need to sign in to view this answers

Leave feedback about this

  • Quality
  • Price
  • Service

PROS

+
Add Field

CONS

+
Add Field
Choose Image
Choose Video