SHARE
TWEET

Untitled

a guest Oct 15th, 2019 89 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int num1, num2, num3, num4, num5;
  8.     int result;
  9.     cout<<"Type 5 numbers:";
  10.     cin>>num1;
  11.     cin>>num2;
  12.     cin>>num3;
  13.     cin>>num4;
  14.     cin>>num5;
  15.    
  16.     result=(num1+num2+num3+num4+num5)/5;
  17.     cout<<"Result is:"<<result;
  18.  
  19.     return 0;
  20. }
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top