ForLoops Mania
Purpose:
-To learn about consistent values and set limits using min and max ranges in the variable list. And listing the values there.
-Also to let user pick their value ending and finish as well as their change value using various codes.
Program Link : replit.com/@jaydenzz/forloopsmaniajaydenr?v=1
-To learn about consistent values and set limits using min and max ranges in the variable list. And listing the values there.
-Also to let user pick their value ending and finish as well as their change value using various codes.
Program Link : replit.com/@jaydenzz/forloopsmaniajaydenr?v=1
forloopsmaniajaydenr.zip | |
File Size: | 6527 kb |
File Type: | zip |
Sample Run:
sh -c make -s
./main
What is your first number? Between: -5000 and 5000
Enter answer: 10000
Number has to be less than 5000 and larger than -5000
What is your first number? Between: -5000 and 5000
Enter answer: 5000
What is your second number?
Enter answer: -5000
What is your change value?
Enter value: 10000
Change value has to be smaller than the difference of the two starting numbers. (10000)
What is your change value?
Enter value: 123
ANSWERS: 5000, 4877, 4754, 4631, 4508, 4385, 4262, 4139, 4016, 3893, 3770, 3647, 3524, 3401, 3278, 3155, 3032, 2909, 2786, 2663, 2540, 2417, 2294, 2171, 2048, 1925, 1802, 1679, 1556, 1433, 1310, 1187, 1064, 941, 818, 695, 572, 449, 326, 203, 80, -43, -166, -289, -412, -535, -658, -781, -904, -1027, -1150, -1273, -1396, -1519, -1642, -1765, -1888, -2011, -2134, -2257, -2380, -2503, -2626, -2749, -2872, -2995, -3118, -3241, -3364, -3487, -3610, -3733, -3856, -3979, -4102, -4225, -4348, -4471, -4594, -4717, -4840, -4963,
Repeat program? Y for Yes N for No
Enter answer: N
./main
What is your first number? Between: -5000 and 5000
Enter answer: 10000
Number has to be less than 5000 and larger than -5000
What is your first number? Between: -5000 and 5000
Enter answer: 5000
What is your second number?
Enter answer: -5000
What is your change value?
Enter value: 10000
Change value has to be smaller than the difference of the two starting numbers. (10000)
What is your change value?
Enter value: 123
ANSWERS: 5000, 4877, 4754, 4631, 4508, 4385, 4262, 4139, 4016, 3893, 3770, 3647, 3524, 3401, 3278, 3155, 3032, 2909, 2786, 2663, 2540, 2417, 2294, 2171, 2048, 1925, 1802, 1679, 1556, 1433, 1310, 1187, 1064, 941, 818, 695, 572, 449, 326, 203, 80, -43, -166, -289, -412, -535, -658, -781, -904, -1027, -1150, -1273, -1396, -1519, -1642, -1765, -1888, -2011, -2134, -2257, -2380, -2503, -2626, -2749, -2872, -2995, -3118, -3241, -3364, -3487, -3610, -3733, -3856, -3979, -4102, -4225, -4348, -4471, -4594, -4717, -4840, -4963,
Repeat program? Y for Yes N for No
Enter answer: N