Untitled

Anonymous
c_cpp
04/22/2023 7:52 AM
492 B
14
Indexable
#include <stdio.h>
#include <conio.h>
#include <iostream>
using namespace std;
int main()
{
    int a, b, c;
        cout <<"Introduceti trei numere: ";
        cin >> a >> b >> c;
        cout <<"Suma lor este: "<< (a+b+c) <<"\n";
        cout <<"Introduceti doua numere: ";
        cin >> a >> b;
        cout <<"Media lor aritmetica este: "<< (a+b)/2;
}
Editor is loading...