SHARE
TWEET

2019.12.11 1

Unroacerimputit Dec 11th, 2019 84 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //scrietio functie care primeste care primeste  ca parametrii  doua valori x si y si returneaza media aritmetica a lor
  2. #include<iostream>
  3. using namespace std;
  4. float media(float x,float y)
  5. {
  6.      float ma;
  7.      ma=(x+y)/2.0;
  8.      return ma;
  9. }
  10.  
  11. int main()
  12. {
  13.    int a,b;
  14.    cin>>a>>b;
  15.    cout<<media(a,b);
  16.    return 0;
  17. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top