This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void main() { | |
| //Para realizar el ingreso necesitamos un objeto de tipo Scanner | |
| //Para ello cambiamos var por el tipo de dato que corresponde | |
| Scanner input = new Scanner(System.in); | |
| int limit; | |
| //cambiamos var por el tipo de dato que corresponde a cont y suma, que son int y double | |
| int cont = 0; |