C++ tutorial, C++ programs, C++ Exercises, C++ Example Programs

Saturday, March 24, 2018

C++ Program To Input Base, Height of Triangle, Calculate Area

Easyway How To Write a Program in C++ for Calculating Area of Triangle When base and height is given Program Statement: Write a C++ program to input base and height of a triangle and calculates and prints the area of triangle. Input base and height, compute area of...
Share:

C++ Program Compute Sum of Cubes of Digits of User Supplied Number Easyway

Q: Write a Program in C++ Programming language that inputs an integer number and computes the sum of cubes of digits of  this user supplied number at run time.       For example, if given number is 123 then answer will be Sum of cubes of  digits...
Share:

C++ Program Calculate Sum of Squares of Digits of Given Number

Q: Write a C++ Program to input an integer number. Calculate the sum of squares of digits of          this number.       For example, if given number is 123 then answer will be Sum squares of  digits = 14      ...
Share:

C++ Program To Find Product of Digits of Given Number

Q: Input an integer number. Find and show the product / multiplication of digits of given number. That is we have to multiply digits of number.       For example, if given number is 123 then answer will be Product of digits = 6       because...
Share:

C++ Program To Count Number of Digits in a Given Number

Q: Input an integer number. Find and show the COUNT of digits of given number.       For example, if given number is 123 then answer will be Count of digits = 3       because 123  consists of  3 digits. C++ Program to count number...
Share:

C++ Program To Find Sum of Digits of Given Number

Q: Input an integer number. Find and show the sum of digits of given number.       For example, if given number is 123 then answer will be Sum of digits = 6       because 1+2+3 = 6.           Input Number Add its...
Share:

Friday, March 23, 2018

C++ Program To Calculate Area and Circumference of Circle in C Plus Plus Program

Easyway How To Write a Program in C++ for Calculating Area and Circumference of Circle Program Statement: Write a C++ program to input radius of a circle and calculates and prints the area and circumference of the given circle. Calculate area and circumference of circle...
Share:

C++ Program to Calculate Bonus on Salary Grade Wise

Q: Write a C++ Program To Calculate Bonus on Salary Grade Wise Program Statement: Write a C++ Program to input salary and grade. it applies a 60% bonus to employees of grade 17 or above. It adds a 30% bonus for all employees of grade less than 17. Salary Bonus C|++...
Share:

Thursday, March 22, 2018

Program Area of Triangle Algorithm Flowchart

Q: Write a C++ Program to input three sides of a triangle. The program then calculates the Area of triangle by the formula  Formula of area of triangle when 3 sides given Where s = ( a+b+c ) / 2 Write Down Algorithm of C++ Program Area of Triangle 1. Start 2....
Share:

Wednesday, March 21, 2018

C++ Program Temperature Conversion Celsius To Fahrenheit Formula

The formula for converting temperature in Celsius to Fahrenheit is: f=9.0/5.0 * c + 32; It means that User input = temperature in Celsius and output is temperature in Fahrenheit. Easyway Temperature Conversion C++ Program Celsius Into Fahrenheit Scale Formula...
Share:

Write a C++ Program To Check a Number For Even Odd Using Conditional Operator Ternary Operator

Here is the C++ source code  for the program that will input an integer number and will check this number whether it is even or odd. But this program will not use if else statement for checking this number for even / odd. Rather it will use C++ Conditional operator...
Share:

Saturday, March 17, 2018

C Plus Plus Program to Calculate Factorial of Number Using Do While Loop

Program To Calculate Factorial of a Number Using do ... while Loop  What is Factorial? factorial of a number is calculated by multiplying all the integer numbers from given number n to 1. For example, factorial of  3 = 3 x 2 x 1. What is do while Loop in...
Share:

EasyCPPprogramming.blogspotcom