Answer:
The program is as follows:
#include <iostream>
#include <iomanip>
using namespace std;
int main(){
int num1, num2, num3;
cin>>num1>>num2>>num3;
cout << fixed << setprecision(2);
cout<<(num1 + num2 + num3)/3<<" ";
cout<<num1 * num2 * num3<<" ";
return 0;
}
Explanation:
This declares three integer variables
int num1, num2, num3;
This gets input for the three integers
cin>>num1>>num2>>num3;
This is used to set the precision to 2
cout << fixed << setprecision(2);
This prints the average
cout<<(num1 + num2 + num3)/3<<" ";
This prints the product
cout<<num1 * num2 * num3<<" ";
Can you help me in this question
Answer:
count = arry[0];
for (i = 0; i < n; i++)
{
if (count>5);
{
count;
}
}
cout << "Total Count of the numbers greater than or equal to 5 : " <<count ;
Explanation:
count = arry[0];
for (i = 0; i < n; i++)
{
if (count>5);
{
count;
}
}
cout << "Total Count of the numbers greater than or equal to 5 : " <<count ;