
90 Introduction to Computational Modeling
$ gcc -Wall summ.c -o summ.out -lm
$ ./summ.out
Enter value of input number: 12.5
Value of input number: 12.500000
Enter value of input number: 10.0
Value of input number: 10.000000
Enter value of input number: 5.5
Value of input number: 5.500000
Enter value of input number: 4.25
Value of input number: 4.250000
Enter value of input number: 133.75
Value of input number: 133.750000
Enter value of input number: 0.0
Value of input number: 0.000000
Value of summation: 166.000000
7.3 Repeat-Until Loop
The repeat-until loop is a control flow structure that allows actions to be executed
repeatedly based on a given condition.