AraYanami

Untitled

Oct 16th, 2020
444
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. #include <cstdlib>
  3. #include <ctime>
  4. using namespace std;
  5.  
  6.  
  7. int main() {
  8.   srand(time(0));
  9.   int n = 3;
  10.   int number = 0;
  11.   int sum = 0;
  12.   for(int i = 0; i < 3; i++){
  13.     number = 10 + rand() % 90;
  14.     sum += number;
  15.   }
  16.  
  17. }
RAW Paste Data