Programming Reference/Librarys
Question & Answer
Q&A is closed
#include <stdio.h> /* including standard library */ //#include <windows.h> /* uncomment this for Windows */ while ( condition == true ) { do something until condition untrue }
#include <stdio.h> /* including standard library */ //#include <windows.h> /* uncomment this for Windows */ int main(void) { int i=0; while (i <= 10) { printf("%i\n",i); i++; } return 0; }
//output:// 0 1 2 3 4 5 6 7 ... up to 10