How to add two conditions in one if statement? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to add two conditions in one if statement?

This a Condition 0<a<100 How Can we write in one line like "If (0<a,a<100);"?

16th Jun 2020, 3:29 PM
Mohamed Waseem
Mohamed Waseem - avatar
2 Answers
+ 3
if(a>0 && a<100) { // 0<a<100 } Please continue your c# course.
16th Jun 2020, 3:39 PM
Calviղ
Calviղ - avatar
0
Calviղ thanks
16th Jun 2020, 6:34 PM
Mohamed Waseem
Mohamed Waseem - avatar