This file contains 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() { | |
for (int i = 0; i < 5; i++) { | |
print('Numero: ${i + 1}'); | |
} | |
} |
This file contains 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
import 'package:flutter/material.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
title: 'Flutter Demo', | |
debugShowCheckedModeBanner: false, |
This file contains 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() { | |
//Variable tipo entero: | |
int edad = 34; | |
//Variable: | |
var nombre = "Jose Demian Ramirez Ramirez "; | |
//Variable tipo double: | |
double estatura = 1.65; | |
double peso = 75.2; |
This file contains 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() { | |
var a,b,r; | |
a=7; | |
b=3; | |
r=a+b; | |
print("la suma de $a + $b es: $r"); | |
print(""); | |
r=a/b; |
This file contains 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 tunombre(){ | |
print("Mi nombre es Demian Ramirez. Estoy usando funciones"); | |
}//Fin de la funcion tunombre | |
void sumaAB(int a, int b){ | |
int s=0; | |
s=a+b; |
This file contains 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 sumaAB(int a,int b){ | |
print("Funcion suma"); | |
print("El resultado es ${a+b}"); | |
print("-------------------------------"); | |
print("Funcion flecha"); | |
} | |
void sumaAB2(int a,int b) => print("El resultado2 es ${a+b}"); | |
void resta(int a, int b){ | |
print("-------------------------------"); |
This file contains 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
//Programacion orientada a objetos | |
//Ramirez Ramirez Jose Demian 6to I | |
class Figura{ | |
//Atributos | |
double? pi; | |
double? radio; | |
//Funciones: | |
void datosFigura(){ |
This file contains 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
//programacion orientada a objetos | |
class Figura{ | |
//Atributos | |
double? base; | |
double? altura; | |
//Funciones | |
void datosfigura(){ | |
print("Base: $base"); | |
print("Altura: $altura"); |
This file contains 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
import 'package:flutter/material.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
title: 'Flutter practica', | |
debugShowCheckedModeBanner: false, |