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 'dart:math' as math; | |
void main() { | |
double r=2; | |
double A=0; | |
double P=0; | |
String Programador="Pedro Picasso"; | |
// formula del area | |
A= math.pi*math.pow(r,2); | |
print("Area=${A}"); | |
// formula del perimetro |
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( | |
Center( | |
child: Text( | |
'hello world', | |
textDirection: TextDirection.ltr, | |
style: TextStyle(fontSize: 32, color: Colors.black87), | |
), |
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( PicassoApp()); | |
}//fin de main | |
class PicassoApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( |
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(Balbuenatest()); | |
class Balbuenatest extends StatelessWidget { | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
title: 'Hello World Demo Aplication', | |
theme: ThemeData( | |
primarySwatch: Colors.green, |
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(Test()); | |
class Test extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
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(){ | |
//SE DECLARAN LAS VARIABLES | |
int dia=2; | |
String name='Pedro Picasso'; | |
print('Enumera un dia de la semana y yo te dire su nombre'); | |
print('el numero ingresado es: ${dia}'); | |
print(''); | |
//COMIENZA EL SWITCH | |
switch(dia){ |
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(){ | |
//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(''); |
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(){ | |
//se declaran variables | |
String name='Pedro Picasso'; | |
print('Te mostrare la tabla del 7'); | |
print('Con ayuda de la estructura de repeticion While'); | |
double i=0; | |
double resultado=0; | |
//empieza while | |
while(i<10){ | |
i++; |