@ZControls_Games/

1st try at C++

C++

No description

fork
loading
Files
  • main.cpp
  • AppWIndow.h
main.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
29
30
31
#include <iostream>
#include <cmath>

using namespace std;

int main() {
  string lol = "hi";
  int age;
  
  
  cout<< "Enter you age: " ;
  cin >> age;
  if (age < 0){
    cout << "That's impossible." << endl;
  }
  if (age > 0){
  cout << "You are " << age << " years old." << endl;
  }  
  string name;    
  cout << "Enter your name: " << endl;
  cin >> name;
  
  cout << "Welcome " << name << endl;
 
  int luckyNums[] = {0,1,2,5,8,9,67};
  cout << luckyNums[0];

  return luckyNums[0];
}