C++ All Programs of C++ Languages |
Advertisement |
|
Thread Tools | Display Modes |
|
(#1)
|
|
||||
3rd Class: if Statement In C++ -
>>
Show Printable Version
Email this Page
04-09-2014, 07:23 PM
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 Output (Condition True, Statement Executed) Output (Condition False, Statement Ignored)
➳ bE driveN wiTh puRpOse, Be r313n71355 in your alιgnмenт; with excellence. pAy n0 mInd to the ∂ιsιмραssισηε∂ เ๓ק๏tєภt ђคtєгร ♬ ☣ .. нoolιgan ☠
|
Sponsored Links |
|
(#2)
|
|
||||
Re: 3rd Class: if Statement In C++ -
>>
Show Printable Version
Email this Page
04-09-2014, 09:24 PM
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?
ALLAH FARMATA HAI : AEY BANDEY JO HUA WO ACHA HUA . JO HORAHA HAI ACHA HO RAHA HAI. JO HOGA WO BHI ACHA HOGA. TERA KIYA GAIYA JO TU ROTA HAI TU KIA LAYA JO TU NE KHO DIYA. JO LIYA YAHIN (DUNYA) SEI LIYA JO DIYA YAHIN (DUNYA) PE DIYA JO AAJ TERA HAI PEHLAY KISI AUR KA THA AUR KAL KISI AUR KA HOGA. TABDEELI KAINAAT KA MAMOOL HAI BAS TU WO JAMA KAR JO TU SATH LEI KAR JANEY WALA HAI YANI NAIK AMAAL. |
(#3)
|
|
||||
Re: 3rd Class: if Statement In C++ -
>>
Show Printable Version
Email this Page
04-09-2014, 09:35 PM
|
(#4)
|
|
||||
Re: 3rd Class: if Statement In C++ -
>>
Show Printable Version
Email this Page
04-10-2014, 11:49 AM
|
(#5)
|
|
|||
Re: 3rd Class: if Statement In C++ -
>>
Show Printable Version
Email this Page
04-10-2014, 01:10 PM
|
(#6)
|
|
||||
Re: 3rd Class: if Statement In C++ -
>>
Show Printable Version
Email this Page
04-12-2014, 01:28 AM
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.
ALLAH FARMATA HAI : AEY BANDEY JO HUA WO ACHA HUA . JO HORAHA HAI ACHA HO RAHA HAI. JO HOGA WO BHI ACHA HOGA. TERA KIYA GAIYA JO TU ROTA HAI TU KIA LAYA JO TU NE KHO DIYA. JO LIYA YAHIN (DUNYA) SEI LIYA JO DIYA YAHIN (DUNYA) PE DIYA JO AAJ TERA HAI PEHLAY KISI AUR KA THA AUR KAL KISI AUR KA HOGA. TABDEELI KAINAAT KA MAMOOL HAI BAS TU WO JAMA KAR JO TU SATH LEI KAR JANEY WALA HAI YANI NAIK AMAAL. |
(#7)
|
|
||||
Re: 3rd Class: if Statement In C++ -
>>
Show Printable Version
Email this Page
04-12-2014, 01:30 AM
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
ALLAH FARMATA HAI : AEY BANDEY JO HUA WO ACHA HUA . JO HORAHA HAI ACHA HO RAHA HAI. JO HOGA WO BHI ACHA HOGA. TERA KIYA GAIYA JO TU ROTA HAI TU KIA LAYA JO TU NE KHO DIYA. JO LIYA YAHIN (DUNYA) SEI LIYA JO DIYA YAHIN (DUNYA) PE DIYA JO AAJ TERA HAI PEHLAY KISI AUR KA THA AUR KAL KISI AUR KA HOGA. TABDEELI KAINAAT KA MAMOOL HAI BAS TU WO JAMA KAR JO TU SATH LEI KAR JANEY WALA HAI YANI NAIK AMAAL. |
(#8)
|
|
||||
Re: 3rd Class: if Statement In C++ -
>>
Show Printable Version
Email this Page
04-12-2014, 01:48 AM
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 ..
➳ bE driveN wiTh puRpOse, Be r313n71355 in your alιgnмenт; with excellence. pAy n0 mInd to the ∂ιsιмραssισηε∂ เ๓ק๏tєภt ђคtєгร ♬ ☣ .. нoolιgan ☠
|
(#9)
|
|
||||
Re: 3rd Class: if Statement In C++ -
>>
Show Printable Version
Email this Page
04-12-2014, 08:18 PM
Quote:
Aur string sei hum input main number+character dono lei saktey hie. Correct?
ALLAH FARMATA HAI : AEY BANDEY JO HUA WO ACHA HUA . JO HORAHA HAI ACHA HO RAHA HAI. JO HOGA WO BHI ACHA HOGA. TERA KIYA GAIYA JO TU ROTA HAI TU KIA LAYA JO TU NE KHO DIYA. JO LIYA YAHIN (DUNYA) SEI LIYA JO DIYA YAHIN (DUNYA) PE DIYA JO AAJ TERA HAI PEHLAY KISI AUR KA THA AUR KAL KISI AUR KA HOGA. TABDEELI KAINAAT KA MAMOOL HAI BAS TU WO JAMA KAR JO TU SATH LEI KAR JANEY WALA HAI YANI NAIK AMAAL. |
(#10)
|
|
||||
Re: 3rd Class: if Statement In C++ -
>>
Show Printable Version
Email this Page
04-12-2014, 01:40 AM
|
Bookmarks |
Tags |
3rd, class, statement |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
CNG sector reacts sharply to minister’s statement | Morash | General Discussion | 6 | 11-01-2013 03:30 PM |
I waz in class 7th | ღƬαsнι☣Rασ™ | Jokes | 2 | 05-09-2013 09:47 AM |
Best Statement By Sheikh Rashid | mcitp-it | Amazing Videos | 0 | 05-28-2012 07:18 PM |
Open Heart Surgery Unit ke ke bahir likha hoa statement: | Evolution | Funny Sms | 2 | 11-30-2011 06:50 PM |