Please Koi batay k nested if statement kia hai or is koi example b batain aap ki mehrbani ho ghee.plz Plz Plz
Please Koi batay k nested if statement kia hai or is koi example b batain aap ki mehrbani ho ghee.plz Plz Plz
walikumslam hamary teacher ne aj he parhya hay. nested if ko explain kerna mujy nahi ata lakin example yeh hay
for(int i=1;i<=10;i++)
for(int j=1;j<=10;j++)
cout<<i<<j" ";
yeh is ka syntax hay is ka output kuch is terha hoga (jo mujy smjh mien aya baqi ap sir mooed sey smjh lena)
key i aur j ki values ko mila ker print hoga jesy 12 11 10 ......... isi terha
kiuon key mein new hun tu mujy zada nahi ata mein khud student hun ager smjh nay aye tu dont mind plz
Here is an example of nested if statement:
its very easy to understand..Code:if ( condition1 ) statement1 ; else if ( condition2 ) statement2 ; . . . else if ( condition-n ) statement-n ; else statement-e ;
like if i am here then i can do this;
else if i am not here on time i cant;
else i cant do this;
its like testing a condition.
Bookmarks