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(); | |
} | |
} | |
} |
O meu não vai de jeito nenhum! E eu escrevi o código exatamente assim! kkkk meu deus vou moré
Ele ta indo até o 4 e no final ta assim: 999 X ...
using System; namespace Uri1078 { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); int formula, contador; for (contador = 1; contador < 10; ++contador) { formula = n * contador; Console.WriteLine(n + " X " + contador + " = " + formula); } Console.ReadKey(); } } }
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 ser contador <= 10
,
acredito que você até já resolveu, mas essa mudança, acredito que resolva.
obg por ajudar um formando ]
@theyllo Rapaz... feliz que este código ajudou. é mega antigo hehehe
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
DECLARE
@i AS INT,
@j AS INT;