Untitled

mail@pastecode.io avatar
unknown
c_cpp
2 years ago
369 B
1
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;
}