filmov
tv
CC-112 Lecture 20 | The IF Statement Programs | Conditions in C++ | Program Part 1 | Hussain Sajid
Показать описание
CC-112 Lecture 20 | The IF Statement Programs | Conditions in C++ | Program Part 1 | Hussain Sajid
Programs:
1. Write a program that inputs marks and displays “Congratulations! You have passed.” If the marks are 40 or more.
2. Write a program that inputs two numbers and finds whether both are equal.
3. Write a program that inputs two numbers and finds if second number is square of first.
4. Write a program that inputs marks of three subjects. If the average of marks is more than 80, it displays two messages. “You are above standard!” and “Admission granted”.
5. Write a program that inputs three numbers and displays the maximum number.
6. Write a program to input and number and determine whether it is positive, negative or 0.
7. Write a program that inputs five integers. It finds and prints the largest and smallest integer.
if you have any question get in touch
Programs:
1. Write a program that inputs marks and displays “Congratulations! You have passed.” If the marks are 40 or more.
2. Write a program that inputs two numbers and finds whether both are equal.
3. Write a program that inputs two numbers and finds if second number is square of first.
4. Write a program that inputs marks of three subjects. If the average of marks is more than 80, it displays two messages. “You are above standard!” and “Admission granted”.
5. Write a program that inputs three numbers and displays the maximum number.
6. Write a program to input and number and determine whether it is positive, negative or 0.
7. Write a program that inputs five integers. It finds and prints the largest and smallest integer.
if you have any question get in touch