Kerangka do-while:
do { /* statement */ } while (/* condition */);
Contoh source code:
#include <stdio.h> int main() { int i = 0; do { printf("Hello world %d\n", i); i++; // counter agar kondisi tidak selalu bernilai benar } while (i < 5); return 0; }
Post a Comment