File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ <!DOCTYPE html>
2+ < html lang ="pt-BR ">
3+ < head >
4+ < meta charset ="UTF-8 ">
5+ < meta http-equiv ="X-UA-Compatible " content ="IE=edge ">
6+ < meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
7+
8+ < link rel ="stylesheet " href ="../Css/pattern.css ">
9+
10+ < title > Desafio 03 - Sucessor e antecessor</ title >
11+
12+ </ head >
13+ < body >
14+
15+ < h1 > < span > 🧮</ span > Sucessor e Antecessor</ h1 >
16+
17+ < button onclick ="numeros(); "> Clique aqui para começar</ button >
18+
19+ < script src ="des_numeros.js "> </ script >
20+
21+ </ body >
22+ </ html >
Original file line number Diff line number Diff line change 1+ function numeros ( ) {
2+
3+ let num = parseInt ( prompt ( "Digite um número inteiro qualquer!" ) ) ;
4+
5+ alert ( `Antes de ${ num } temos o número ${ num - 1 } . \nDepois de ${ num } temos o número ${ num + 1 } . ` ) ;
6+ }
You can’t perform that action at this time.
0 commit comments