Radius | area | circle calculator

Radius | area | circle calculator

Write a C++ program that stores the number 105.62 in the variable firstnum, 89.352 in the variable secnum, and 98.67 in the variable thirdnum. Have your program calculate the total of the three numbers and their average. The total should be stored in the variable total and the average in the variable average. Use the cout object to display the total and the average.


STEP#1    Start
STEP#2    Declare the variable Firstnum, Secnum, Thirdnum, Total,  Average
STEP#3    Assign value 105.62 to Firstnum
STEP#4    Assign value 89.352 to Secnum
STEP#5    Assign value 98.67 to Thirdnum
STEP#6    Calculate Total and Average
STEP#7    Total= (Firstnum+Secnum+Thirdnum)
STEP#8    Average= (Total/3)
STEP#9    Display the Total
STEP#10    Display the Average
STEP#11    End

#include <iostream>
using namespace std;
int main()
    float radius,area,circum;
    return 0;


Popular posts from this blog

Real marksheet using HTML

Salary Calculate Application in C#