Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

/*

* Created by SharpDevelop.
* User: User
* Date: 30/04/2021
* Time: 06:36 p.m.
*
* To change this template use Tools | Options | Coding | Edit Standard Headers.
*/
using System;

namespace swqe
{
class Program
{
public static void Main(string[] args)
{
int y
= 0, x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15, x16, x17, x18, x19, x20, suma;

Console.WriteLine("Introdusca numero 1:");


x1 = Convert.ToInt16(Console.ReadLine());
Console.WriteLine("Introdusca numero 2:");
x2 = Convert.ToInt16(Console.ReadLine());
Console.WriteLine("Introdusca numero 3:");
x3 = Convert.ToInt16(Console.ReadLine());
Console.WriteLine("Introdusca numero 4:");
x4 = Convert.ToInt16(Console.ReadLine());
Console.WriteLine("Introdusca numero 5:");
x5 = Convert.ToInt16(Console.ReadLine());
Console.WriteLine("Introdusca numero 6:");
x6 = Convert.ToInt16(Console.ReadLine());
Console.WriteLine("Introdusca numero 7:");
x7 = Convert.ToInt16(Console.ReadLine());
Console.WriteLine("Introdusca numero 8:");
x8 = Convert.ToInt16(Console.ReadLine());
Console.WriteLine("Introdusca numero 9:");
x9 = Convert.ToInt16(Console.ReadLine());
Console.WriteLine("Introdusca numero 10:");
x10 = Convert.ToInt16(Console.ReadLine());
Console.WriteLine("Introdusca numero 11:");
x11 = Convert.ToInt16(Console.ReadLine());
Console.WriteLine("Introdusca numero 12:");
x12 = Convert.ToInt16(Console.ReadLine());
Console.WriteLine("Introdusca numero 13:");
x13 = Convert.ToInt16(Console.ReadLine());
Console.WriteLine("Introdusca numero 14:");
x14 = Convert.ToInt16(Console.ReadLine());
Console.WriteLine("Introdusca numero 15:");
x15 = Convert.ToInt16(Console.ReadLine());
Console.WriteLine("Introdusca numero 16:");
x16 = Convert.ToInt16(Console.ReadLine());
Console.WriteLine("Introdusca numero 17:");
x17 = Convert.ToInt16(Console.ReadLine());
Console.WriteLine("Introdusca numero 18:");
x18 = Convert.ToInt16(Console.ReadLine());
Console.WriteLine("Introdusca numero 19:");
x19 = Convert.ToInt16(Console.ReadLine());
Console.WriteLine("Introdusca numero 20:");
x20 = Convert.ToInt16(Console.ReadLine());

Console.WriteLine(" ");

Console.WriteLine("Los siguientes números son los impares:");

if ((x1 % 2)==0);
else
Console.WriteLine(x1);

if ((x2 % 2)==0);
else
Console.WriteLine(x2);

if ((x3 % 2)==0);
else
Console.WriteLine(x3);

if ((x4 % 2)==0);
else
Console.WriteLine(x4);

if ((x5 % 2)==0);
else
Console.WriteLine(x5);

if ((x6 % 2)==0);
else
Console.WriteLine(x6);
if ((x7 % 2)==0);
else
Console.WriteLine(x7);

if ((x8 % 2)==0);
else
Console.WriteLine(x8);

if ((x9 % 2)==0);
else
Console.WriteLine(x9);

if ((x10 % 2)==0);
else
Console.WriteLine(x10);

if ((x11 % 2)==0);
else
Console.WriteLine(x11);

if ((x12 % 2)==0);
else
Console.WriteLine(x12);

if ((x13 % 2)==0);
else
Console.WriteLine(x13);

if ((x14 % 2)==0);
else
Console.WriteLine(x14);

if ((x15 % 2)==0);
else
Console.WriteLine(x15);

if ((x16 % 2)==0);
else
Console.WriteLine(x16);

if ((x17 % 2)==0);
else
Console.WriteLine(x17);
if ((x18 % 2)==0);
else
Console.WriteLine(x18);

if ((x19 % 2)==0);
else
Console.WriteLine(x19);

if ((x20 % 2)==0);
else
Console.WriteLine(x20);

Console.WriteLine(" ");
suma =x1 + x2 +x3 + x4 + x5 + x6 + x7 +x8 + x9 + x10;
Console.WriteLine(" La suma de los 10 primeros es igual a : ");
Console.WriteLine(suma);

if (x1 > 100)


y = y + 1;

if (x2 > 100)


y = y + 1;

if (x3 > 100)


y = y + 1;

if (x4 > 100)


y = y + 1;

if (x5 > 100)


y = y + 1;

if (x6 > 100)


y = y + 1;

if (x7 > 100)


y = y + 1;

if (x8 > 100)


y = y + 1;

if (x9 > 100)


y = y + 1;
if (x10 > 100)
y = y + 1;

if (x11 > 100)


y = y + 1;

if (x12 > 100)


y = y + 1;

if (x13 > 100)


y = y + 1;

if (x14 > 100)


y = y + 1;

if (x15 > 100)


y = y + 1;

if (x16 > 100)


y = y + 1;

if (x17> 100)
y = y + 1;;

if (x18 > 100)


y = y + 1;

if (x19 > 100)


y = y + 1;

if (x20 > 100)


y = y + 1;

Console.WriteLine(" ");

Console.WriteLine("La cantidad de númreos mayores que 100 es:");


Console.WriteLine(y);

Console.Write("Press any key to continue . . . ");


Console.ReadKey(true);
}
}
}

You might also like