+ 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?
4 Antworten
+ 2
Yes you can do that.
Loops- for and while.
Conditions- if and switch.
+ 2
Hmm, why not..
+ 1
What do you mean precisely? Can you show us what you want to do (code example)?
+ 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.