0

How can I write I=0 and I=3 and j=0 and j= 3 in if conditions with proper pattern ???

c++

21st Jul 2016, 6:51 PM
Talha Rao
Talha Rao - avatar
2 Réponses
+ 1
I'm not sure what you mean exactly, but hopefully one of these will help you out: if (l == 0) { //code } if (l == 3) { //code } if (j == 0) { //code } if (j == 3) { //code } if (l == 0) { //code } else if (l == 3) { //code } else if (j == 0) { //code } else if (j == 3) { //code }
22nd Jul 2016, 12:07 AM
Cohen Creber
Cohen Creber - avatar
0
Thanks :)
23rd Jul 2016, 5:33 PM
Talha Rao
Talha Rao - avatar