Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
tipos de bucle for, while, do while
//Microsoft (R) Visual C# Compiler version 3.4.0-beta4-19562-05 (ff930dec) //Copyright (C) Microsoft Corporation. All rights reserved. using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { int i = 0; Console.WriteLine("BUCLE FOR"); for( i = 0; i < 10; i++)// si i es menor que 10 el bucle entra, si no el bucle termina { Console.WriteLine("{0}", i);//imprime los primeros 10 numeros } Console.WriteLine("BUCLE WHILE"); i = 0; while(i < 10) { Console.WriteLine("{0}", i); i++; } Console.WriteLine("BUCLE DO WHILE"); i = 0; do { Console.WriteLine("{0}", i); i++; }while(i<10); } } }
run
|
edit
|
history
|
help
0
Fun with Enums
tester of xpath
Tttt
Prim`s Algorithm
Fórum ➡ Rotating a Square Matrix One Cell Counter Clockwise
Find the integers which squares sum gives the prime numbers of the form (4k + 1).
enums with extension method: better
,
Create RFReader HardwareConfig
DateTime