What functions do I need to use for to terminate the functions in for loops with char? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What functions do I need to use for to terminate the functions in for loops with char?

Here I have my project how do I terminate the functions with char https://code.sololearn.com/cddZaPkJ7FTz/?ref=app

18th Nov 2019, 11:00 PM
Shofi Uddin
1 Answer
0
We already answered you dude.. You cannot take character input bcoz data type you are using is integer not character... And I already told you that ask for any negative integer to terminate the loop(rather than pressing F key)..Check if num<0 on each iteration and if it is true terminate the loop using break statement..
26th Nov 2019, 8:07 AM
Alaska
Alaska - avatar