Cpp | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Cpp

Can we write if elif else instead of multiple if

10th Jul 2020, 1:24 PM
vishal pawar
vishal pawar - avatar
2 Answers
+ 9
Your question is unclear. I am assuming that you are trying to say that "Can we use switch instead of multiple if elseif". Yes, you can. https://www.sololearn.com/learn/CPlusPlus/1618/
10th Jul 2020, 1:26 PM
Raj Chhatrala
Raj Chhatrala - avatar
0
Ok bro thanks
10th Jul 2020, 2:21 PM
vishal pawar
vishal pawar - avatar