using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication36
{
class Program
{
// خلدون عصفور
// برنامج لحساب قيمة التيار وقيمة الجهد الاول والثاني
static void Main(string[] args)
{
double R1, R2, RT;
double V, V1, V2;
double I;
Console.WriteLine("PLZ enter the V");
V = double.Parse(Console.ReadLine());
Console.WriteLine("PLZ enter the R1");
R1 = double.Parse(Console.ReadLine());
Console.WriteLine("PLZ enter the R2");
R2 = double.Parse(Console.ReadLine());
RT = R1 + R2;
Console.WriteLine(" the RT IS " + RT+ " OHM");
I = V / RT;
Console.WriteLine("the I IS " + I + " ABMER");
V1 = I * R1;
Console.WriteLine(" the RT IS " + V1+ " VOLT");
V2 = I * R2;
Console.WriteLine(" the RT IS " + V2 + " VOLT");
Console.ReadKey();
}
}
}