Programas en C#

Monday, November 20, 2006

using System;
using System.Collections.Generic;
using System.Text;

namespace ej3
{
class Program
{
static void Main(string[] args)
{
int n;

Console.WriteLine("Escriba un numero");
n = Int32.Parse(Console.ReadLine());
if ((n % 2 == 0)||(n%5==0))
Console.WriteLine("El numero es multiplo de 2 y de 5");
else
Console.WriteLine("No es multiplo de 2 y de 5");



}

}
}

0 Comments:

Post a Comment

<< Home