Programas en C#

Tuesday, October 17, 2006

2. Usos del método WRITELINE


using System;
using System.Collections.Generic;
using System.Text;
namespace ejemplos
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine(99);
Console.WriteLine("hola,mundo");
Console.WriteLine("la suma de {0} y {1} es {2}", 102, 130, 100 + 130);
Console.WriteLine(100/2-50);
Console.WriteLine("justificacion a la izquierda en un campo de anchura 10:{0,-10}", 99);
Console.WriteLine("justificacion a la derecha en un campo de anchura 10:{0,10}", 99);
}
}
}

0 Comments:

Post a Comment

<< Home