View Code of Problem 47

#include <iostream>

using namespace std;

int main() {
    int a, b, c;
    cin >> a >> b >> c;
    int s = a + b;
    int m = a  * b;
    double av = (a + b) / 2.0;
    printf("%d %d %.2f",s,m,av);
}

Double click to view unformatted code.


Back to problem 47