-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathexercicioP10.linq
More file actions
27 lines (23 loc) · 917 Bytes
/
Copy pathexercicioP10.linq
File metadata and controls
27 lines (23 loc) · 917 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
<Query Kind="Program" />
void Main()
{
string[] margen = {"Fidalgo", "Comandante militar", "nascimento: 1467, Belmonte,Portugal","Falecimento: 1520,Santarém", "Seu nome é : Pedro alvares cabral"};
string[] CopiaMargen = (string[])margen.Clone();
string[] pedro = {"Erro", "Erro", "Erro"};
string[] CopiaPedro = (string[])pedro.Clone();
string a;
Console.WriteLine("Digite a Resposta Correta!!");
Console.WriteLine("Quem Descobriu o brasil?");
a = Console.ReadLine();
if ((a == "Pedro Alvares Cabral")||(a == "pedro alvares cabral")||(a == "Pedro alvares cabral")||(a == "Pedro alvares")||(a == "pedro alvares"))
{
Console.WriteLine("Resposta Correta... \n Então abriremos o programa!");
Console.WriteLine(CopiaMargen);
}
else
{
Console.WriteLine("Resposta incorreta.... \n Então não abriremos o programa!");
Console.WriteLine(CopiaPedro);
}
}
// Define other methods and classes here