Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int summ(int a, int b){
- return a+b;
- }
- void vasya(){
- //DO_UBORKA
- cout << "Ну убираюсь я, че ты" << endl;
- }
- bool clever_vasya(){
- vasya();
- if(/*uboka is done*/rand()%5){
- return true;
- }else{
- return false;
- }
- }
- int main(){
- srand(time(NULL));
- if(clever_vasya()){
- cout<< "Вася убрался" << endl;
- }else{
- cout << "Вася свалил, увы" << endl;
- }
- return 0;
- }
RAW Paste Data