while (...) { while (...) { ...... } while (...) { ...... } while (...) { ...... } }
can write code way?
can use multiple while
s within while
loop in c language?
(i don't have laptop me right can't test out myself.)
yes, sure can. give go:-).
an example:
#include <stdio.h> #include <stdlib.h> int main(void) { int = 0, j = 0; while (i < 10) { while (j < i) { printf("%d\n", j); j++; } i++; } exit(0); }
it not useful program. illustrate principle.
Comments
Post a Comment