#include int main(void) { int n; /* This is an example of a loop that can read user input as long as user provides input and until the user enters a value that signals termination. */ printf("This program prints cubes until user stops it\n"); /* initialization expression is missing, there is no termination condition, and there is no operation to be performed at the end of each loop iteration. */ for( ; ; ) { printf("Enter a number (enter 0 to stop): "); scanf("%d", &n); if (n==0) break; /* break statement transfers control out of innermost enclosing while, do, for, or switch statement. Therefore, when these statements are nested, the break statement can escape only one level of nesting. */ printf("The entered number %d cubed is %d\n", n, n * n * n); } return 0; }