
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace PRACTICA_2_CONSOLA
{
class Program
{
static void Main(string[] args)
{
int N, M, P, RS;
Console.WriteLine(" Introduce la cantidad de resistencias de 56 ohms ");
N = int.Parse(Console.ReadLine());
Console.WriteLine(" Introduce la cantidad de Resistencias de 33 ohms ");
M = int.Parse(Console.ReadLine());
Console.WriteLine(" Introduce la cantidad de resistencias de 15 ohms ");
P = int.Parse(Console.ReadLine());
RS = N * 56 + M * 33 + P * 15;
Console.WriteLine(" La resistencia total en series es {0}", RS);
Console.ReadKey();
}
}

No hay comentarios:
Publicar un comentario