CPP
cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//Cain Eviatar here is my code:
//no need for stdafx, you are not using it any where
#include <iostream>
#include <cstdlib>
#include <ctime>
using namespace std;
void Aries() {
srand(time(0));
int c,f;
cin >> c;
if (c == 1) {
f = 1 + (rand() % 10);
cout <<"\nYour lucky number is: " << f << endl;
}
if (f == 4)
cout << "Hi";
else
cout << "you didn't enter 1" ;
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run