Skip to content

Instantly share code, notes, and snippets.

View SergioASaenz's full-sized avatar
🥛
Ponganle mayonesa Mcormick

Sergio Saenz SergioASaenz

🥛
Ponganle mayonesa Mcormick
  • Talon
  • De Itztapalapa para el mundo
View GitHub Profile
@SergioASaenz
SergioASaenz / losfores.dart
Last active February 9, 2023 15:59
for y for each
void main(){
print("Sergio Azael Saenz Quiñones");
for(int m=1;m<=5; m++){
print(m);
}//fin de for
print("--------------------------------------------------------------------------");
print("for each");
List<String> colores=['Verde','Amarillo','Azul','Morado'];
colores.forEach((colores)=>print(colores));
print("--------------------------------------------------------------------------");
void main() {
var a, b;
var x, y;
var color;
print("Sergio Azael Saenz Quiñones");
a = -10;
b = ++a; // Incrementa a antes de que b obtenga su valor.
print( " El valor de a es $a 😮");
print(" El valor de b es $b 😮");
print("--------------------------------------------------------------------------");
@SergioASaenz
SergioASaenz / misvariables.dart
Created February 3, 2023 18:45
Tipos de variables en Dart
void main() {
var minombre="Sergio Saenz";
var miedad=17;
var mipeso=69.5;
String miescuela="Cbtis 128";
int sem=6;
print (minombre);
print (miedad);
print (mipeso);
print('--------------------');
@SergioASaenz
SergioASaenz / micontador.dart
Created February 1, 2023 19:49
Mi contador
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override