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
Olá, nossa isso tem muito tempo, era da época do meu técnico em programação,
de qualquer maneira, esta parte do seu código está
contador < 10
onde deveria sercontador <= 10
,acredito que você até já resolveu, mas essa mudança, acredito que resolva.