Documente Academic
Documente Profesional
Documente Cultură
CELSO SANDRO
VÁRZEA GRANDE - MT
2010
CELSO SANDRO
VÁRZEA GRANDE - MT
2010
SUMÁRIO
REFERÊNCIAS............................................................................................................5
3
1 REUTILIZAÇÃO DE CÓDIGO C#
2 RAPLICAÇÃO CONSOLE
using System;
namespace LinTecPro_II
{
class Program
{
static void Main(string[] args)
{
string letras;
int numero;
string[] Vetor_Nomes = new string[10];
int[] Vetor_idades = new int[10];
for (int i = 0; i < 10; i++)
{
Console.Write("Entre com o nome: ");
letras = Console.ReadLine().ToString();
Vetor_Nomes[i] = letras;
Console.WriteLine(" ");
}
for (int x = 0; x < 10; x++)
{
Console.Write("Entre com a idade: ");
numero = Convert.ToInt32(Console.ReadLine());
Vetor_idades[x] = numero;
//Console.WriteLine(" ");
}
Console.WriteLine("Nomes" + " " + "Idades");
foreach (string nome in Vetor_Nomes)
Console.WriteLine(nome);
foreach (int idade in Vetor_idades)
Console.WriteLine(idade);
Console.ReadKey();
}
}
}
5
REFERÊNCIAS
Web aulas.
Tele aulas.
Pesquisa na internet.