While loop example
#include <stdio.h> main() { int value = 1; while(value<=3) { printf("Value is %d\n", value); value++; } return 0; }
Output:
Value is 1
Value is 2
Value is 3



0 comments:
Post a Comment