Question: Program to swap 2 values of two variables entered by user without using third variable. Program to find the largest number between two values entered

Program to swap 2 values of two variables entered by user without using third variable.
Program to find the largest number between two values entered by user.
Write a program that assign the ticket price based on age (child, adult, senior).
Child age should be less than equal to 12
Senior citizen should be greater than equal to 60 whereas greater than 12 and less than 60 should fall under adult.
Initialize ticket price of child, adult, citizen to 10.0,20.0,15.0.
Write a program that takes three numbers as input and prints the maximum using nested if-else statements and if-else-if statements.
 Program to swap 2 values of two variables entered by user

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!