Home
Suva Programming
Home
SAP
Home
CPP
cpp program to show average of five integers
cpp program to show average of five integers
Suva Programming
Wednesday, January 29, 2020
Source Code:
#include<iostream>
using namespace std;
int main()
{
int A,B,C,D,E,sum;
float avg;
cout<<"Enter five integers: ";
cin>>A>>B>>C>>D>>E;
sum=A+B+C+D+E;
avg=float(sum)/5;
cout<<sum<<endl;
cout<<avg<<endl;
return 0;
}
Program Output:
Post a Comment
0 Comments
Categories
CPP
(64)
Java
(4)
Java Virtual Machine
(1)
SAP
(58)
Shell Programming
(4)
Popular Posts
CPP program to divide one matrix by the other
Monday, February 10, 2020
What is TMG in SAP ?
Tuesday, May 07, 2024
Simple SAP Program to store records in an internal table
Friday, March 28, 2025
Contact Form
Name
Email
*
Message
*
0 Comments