Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

#include <iostream>

#include <conio.h>
using namespace std;
int main() {
int x = 15, y = 3, z = 20;
int total, i, j, k, val;
cout << "Arithmetic mean of " << x << " values is :" << z << endl << endl;
cout << "Arithmetic mean after adding " << y << " more values , still :" << z
<< endl;
val = x + y;
total = x * z;
cout << "The values are :" << endl << endl;
k = (z * val) - total;
k = k / 6;
cout << "a:" <<3* k << endl;
cout << "b:" << 2 * k << endl;
cout << "c :" << k << endl;
}

You might also like