-
Notifications
You must be signed in to change notification settings - Fork 127
/
VaiTerCopa.cs
40 lines (30 loc) · 1.03 KB
/
VaiTerCopa.cs
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
// Vai ter Copa?
/*
Kluper é o país sede da copa do mundo. Porém, há muitas pessoas protestando contra
o governo. Em redes sociais é possível ver pessoas afirmando que não vai ter copa
devido aos protestos e insatisfação política
Mas esses rumores de que não haverá copa são totalmente falsos, e o governo já
avisou: vai ter copa sim!
- Entrada
A entrada contém vários casos de teste. Cada caso de teste consiste de uma linha
contendo o número N de reclamações sobre a copa encaminhadas para o governo
(0 ≤ N ≤ 100).
- Saída
Para cada teste, a saída consiste de uma linha dizendo "vai ter copa!" caso não
haja reclamações para o governo. Caso haja reclamações, a saída deverá dizer "vai
ter duas!".
*/
using System;
class DIO {
static void Main(string[] args) {
string str;
while((str = Console.ReadLine())!= null) {
int x = int.Parse(str);
if (x == 0) {
Console.WriteLine("vai ter copa!");
} else {
Console.WriteLine("vai ter duas!");
}
}
}
}