if else statement Example practice question ||C++ tutorial for beginners in Hindi | Urdu

Опубликовано: 15 Февраль 2026
на канале: The slash school (programming)
26
3

in this series of C++ tutorial course we learn about the all important things that we should know .
link of channel:-   / @theslashschoolprogramming5870  
Facebook:-https://web.facebook.com/theslashscho...
INPUT output
data types
header files
while loop
do while loop
for loop
pointers in c++
Arrays
if else statements
switch statement
conditions
operators (Assighnment + unary + binary compound )
we hope that you will enjoye this course to learn . we discussed with examples and as well as with notes of c++ programming language for beginners .we learned how to download dev c++ and also used boiler plate to make the work easy and time saver .
Example :
Pakistan Railway is planning to automate its fare calculation for tickets. There are following facilities given in Fare based on age.
There is no Fare for travel for the Children of age below 3.
There is 50% Fare Concession for the Children of age between 3 to 10. There is Half fare for the senior citizen for the age of 65 or above.
Write a C++ program that input age of passenger and Fare and outputs the discounted fare based on the criteria explained above.