C examples for Statement:for
For loop controlled by double value
#include <stdio.h> int main(void) { double debt;/*w w w .j a v a 2 s . c o m*/ for (debt = 80.0; debt < 150.0; debt = debt * 1.1) printf("debt: $%.2f.\n", debt); return 0; }