Skip to content

Instantly share code, notes, and snippets.

@PedroPicasso18
Created April 8, 2021 05:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PedroPicasso18/f06170c8e227a425d3cc82e2dd587a9c to your computer and use it in GitHub Desktop.
Save PedroPicasso18/f06170c8e227a425d3cc82e2dd587a9c to your computer and use it in GitHub Desktop.
EJERCICIO 2 FOR
void main(){
//se declaran variables
String name='Pedro Picasso';
double x=0;
print('Te mostrare la tabla del 2');
//Empieza el ciclo de repeticion FOR
for(double i=1; i<=10; i++){
x=i*2;
print('${i}x2=${x}');
print('');
}
//se termina
print('Programador: ${name}');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment