Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
267 B
0
Indexable
Never
#include <iostream>
using namespace std;

int main() {
    int a, b, c;
    cout << "Introduceti trei numere naturale: ";
    cin >> a >> b >> c;
    double media = (a + b + c) / 3.0;
    cout << "Media aritmetica este: " << media << endl;
    return 0;
}