When creating a calculator, is it possible to create a range of values... and work with them to see if your code actually works | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

When creating a calculator, is it possible to create a range of values... and work with them to see if your code actually works

1st Aug 2017, 10:42 PM
Abuye Oke
Abuye Oke - avatar
2 Answers
+ 1
If you mean use an array of values as test variables, sure you can, just use a for loop and select the element in the array using the loop limiter as the index
1st Aug 2017, 10:48 PM
James Cooke
0
Thanks
1st Aug 2017, 10:54 PM
Abuye Oke
Abuye Oke - avatar