Starting from:

$24.99

ineuron-C Assignment - 3 A Job Ready Bootcamp in C++, DSA and IOT MySirG Solution

Decision Control Statements

1. Write a program to check whether a given number is positive or non-positive.
2. Write a program to check whether a given number is divisible by 5 or not
3. Write a program to check whether a given number is an even number or an odd number.
4. Write a program to check whether a given number is an even number or an odd number without using % operator.
5. Write a program to check whether a given number is a three-digit number or not.
6. Write a program to print greater between two numbers. Print one number of both are the same.
7. Write a program to check whether roots of a given quadratic equation are real & distinct, real & equal or imaginary roots
8. Write a program to check whether a given year is a leap year or not.
9. Write a program to find the greatest among three given numbers. Print number once if the greatest number appears two or three times.
10. Write a program which takes the cost price and selling price of a product from the user. Now calculate and print profit or loss percentage.
11. Write a program to take marks of 5 subjects from the user. Assume marks are given out of 100 and passing marks is 33. Now display whether the candidate passed the examination or failed.
12. Write a program to check whether a given alphabet is in uppercase or lowercase.
13. Write a program to check whether a given number is divisible by 3 and divisible by 2.
14. Write a program to check whether a given number is divisible by 7 or divisible by 3.
15. Write a program to check whether a given number is positive, negative or zero.
16. Write a program to check whether a given character is an alphabet (uppercase), an alphabet (lower case), a digit or a special character.
17. Write a program which takes the length of the sides of a triangle as an input. Display whether the triangle is valid or not.
18. Write a program which takes the month number as an input and display number of days in that month

More products