3rd Class: if Statement In C++
If Statement In C++ The if statement Is Used To Execute Or Ignore A Set Of Statements After Testing A Give Condition. If The Given Condition Is True The Following Statement Will Be Executed Otherwise Will Be Ignored And The Control Will Transfer To The Next Statement. Syntax: if(condition) { Statement1; } Example http://i60.tinypic.com/2it0a4o.jpg Output (Condition True, Statement Executed) http://i57.tinypic.com/21j6i4o.jpg Output (Condition False, Statement Ignored) http://i60.tinypic.com/1zbqkj8.jpg |
Re: 3rd Class: if Statement In C++
Thanks morash, I am going to try this one.
I have one question, where is else ? like it's if-else ladder? or it's just if statement with printout something and not using else? |
Re: 3rd Class: if Statement In C++
Ye Simple If Statement Hai Ayaz!
Next If Else, Then Nested If Else Statements Hai, Wo Bhi Share Karing .. |
Re: 3rd Class: if Statement In C++
Good sharing usefull ha ye thnks
|
Re: 3rd Class: if Statement In C++
Thanx For Sharing
|
Re: 3rd Class: if Statement In C++
I made this program, took my time.due to one mistake.
I was typing If instead of if . Case sensitive is something hard to follow in programming languages. |
Re: 3rd Class: if Statement In C++
Morash one thing wanted to ask is that what is the different between int and string
what if we take string num; rather than int num; Let me know please thanks |
Re: 3rd Class: if Statement In C++
Case Sensitivity Is Not Hard To Deal With!
Ajkal Jitne Bhi Editors Arahe Hai Os Mai Koi Word Capital Ya Small Likho To Osi Time Indicate Karta Hai .. |
Re: 3rd Class: if Statement In C++
Quote:
And Agar Ap string Type Variable Loge Os Mai Ap char+int Dono Le Sakte Ho .. Like String Mai Ap Number Bhi De Sakte Ho And Character Bhi .. |
Re: 3rd Class: if Statement In C++
Quote:
Aur string sei hum input main number+character dono lei saktey hie. Correct? |
All times are GMT +5. The time now is 01:33 AM. |
Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.