Can I write a same programme by different types of loop in c language? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Can I write a same programme by different types of loop in c language?

Can I write a same programme by different types of loop in c language?

20th Feb 2020, 3:46 PM
VISHNU PANDEY
VISHNU PANDEY - avatar
4 Answers
+ 2
Yes you can do that. Loops- for and while. Conditions- if and switch.
20th Feb 2020, 4:40 PM
Avinesh
Avinesh - avatar
+ 2
Hmm, why not..
26th May 2020, 5:28 PM
Manish Suthar
Manish Suthar - avatar
+ 1
What do you mean precisely? Can you show us what you want to do (code example)?
20th Feb 2020, 4:15 PM
Théophile
Théophile - avatar
+ 1
Yes, you can. You can use the for loop or while loop or do while loop, also you can use recursive function in some cases for the same purpose.
20th Feb 2020, 10:55 PM
Rafik Abdelhak Nadir
Rafik Abdelhak Nadir - avatar