-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmyfirstprogram.cpp
More file actions
47 lines (30 loc) · 881 Bytes
/
myfirstprogram.cpp
File metadata and controls
47 lines (30 loc) · 881 Bytes
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#include <iostream>
using namespace std;
int main()
{
/*int age = 20;
int x, y, z;
x = y = z = 50;
Muestra la suma de estos numeros, todos tienen el valor a 50,
z tiene el valor de 50 50
y equivale a lo que vale z |
x equivale a lo que vale y v
//cout << x + y + z;
// std :: cout << "Hello World!";
cout << "\nHello world!\n";
cout << "I am learning C++\n";
cout << "And I'm currently " << age << " years old.";*/
/*const double pi = 3.14;
double areaCirculo;
double radio;
// Con la letra "e" se indica un numero scientifico a la potencia de 10
float f1 = 35e3;
cout << "Ingrese el radio: ";
cin >> radio;
areaCirculo = pi * (radio * 2);
cout << "El area es " << areaCirculo << "u."; */
int x = 3;
x ^= 4;
cout << x;
return 0;
}