Practice C++ questions and improve your skills. Enjoy It :)
Q1.) Write a C++ program to find the area of a triangle, a rectangle, a square and a circle using inline functions.
Q2.) Write a C++ program to input name of a fruit and its nutritiinal values and display it.
Q3.) Write a C++ program to count the number of times a loop ran to sum the digits of a number.
Q4.) Write a C++ program to input item number, item name, rate and quantity by a customer. The output should display all the details provided with the calculated bill amount. (Input atleast 5 items from the customer.)
Q5.) Write a C++ program to enter a rational number from user, simplify it and display it.
ex.:- Enter a rational number
=====================
Enter numerator : 8
Enter denominator : 12
Simplified rational number is : 2/3
Q6.) Write a C++ program to input name, age and salary of 5 employees and display the details of employees whose salary is more than 15,000.
Q2.) Write a C++ program to input name of a fruit and its nutritiinal values and display it.
Q3.) Write a C++ program to count the number of times a loop ran to sum the digits of a number.
Q4.) Write a C++ program to input item number, item name, rate and quantity by a customer. The output should display all the details provided with the calculated bill amount. (Input atleast 5 items from the customer.)
Q5.) Write a C++ program to enter a rational number from user, simplify it and display it.
ex.:- Enter a rational number
=====================
Enter numerator : 8
Enter denominator : 12
Simplified rational number is : 2/3
Q6.) Write a C++ program to input name, age and salary of 5 employees and display the details of employees whose salary is more than 15,000.
Regards,
- ITK
Comments
Post a Comment