Created
July 29, 2014 13:26
-
-
Save RenatoRosaFranco/2ec90e1a6f7cca0c7404 to your computer and use it in GitHub Desktop.
Tabuada C#
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace ConsoleApplication1 | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
// Recebe as Variaveis | |
int formula, contador, numero; | |
Console.Write("Digite o Numero para Obter a Taboada : "); | |
numero = Int32.Parse(Console.ReadLine()); | |
//para | |
for (contador = 1; contador <= 10; ++contador) | |
{ | |
formula = numero * contador; | |
Console.WriteLine(numero + " X " + contador + " = " + formula); | |
} | |
Console.ReadKey(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@theyllo Rapaz... feliz que este código ajudou. é mega antigo hehehe