You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var perguntaData = parseInt(prompt("Digite a data que você quer verificar se haverá Copa do Mundo"));
while (anoCopa <= perguntaData) {
mostra("Em " + anoCopa + " houve uma Copa do Mundo.");
anoCopa = anoCopa + 4;
}
pulaLinha();
mostra("Segundo meus cálculos, até o ano de " + perguntaData + ",<br/>a última Compa do Mundo de Futebol foi ano de " + (anoCopa - 4) + ",<br/>sendo a primeira edição no ano de " + anoCopaIni + ".");
// mostra("A ultima Copa do Mundo foi no ano de " + (anoCopa - 4));