Skip to content

Instantly share code, notes, and snippets.

Avatar

PedroPicasso18

View GitHub Profile
View main.dart
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++;
View main.dart
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('');
View main.dart
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){
@PedroPicasso18
PedroPicasso18 / main.dart
Created Mar 31, 2021
Android actividad 6
View main.dart
import 'package:flutter/material.dart';
void main() => runApp(Test());
class Test extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
View main.dart
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,
View main.dart
import 'package:flutter/material.dart';
void main() {
runApp( PicassoApp());
}//fin de main
class PicassoApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
View main.dart
import 'package:flutter/material.dart';
void main() {
runApp(
Center(
child: Text(
'hello world',
textDirection: TextDirection.ltr,
style: TextStyle(fontSize: 32, color: Colors.black87),
),
@PedroPicasso18
PedroPicasso18 / main.dart
Created Mar 23, 2021
Actividad numero 1
View main.dart
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