C#:
UInt64 V1, V2, S, T, S1;
Console.Write("V1 = ");
V1 = Convert.ToUInt64(Console.ReadLine());
Console.Write("V2 = ");
V2 = Convert.ToUInt64(Console.ReadLine());
Console.Write("T = ");
T = Convert.ToUInt64(Console.ReadLine());
Console.Write("S = ");
S = Convert.ToUInt64(Console.ReadLine());
S1 = (V1 + V2) * T + S;
Console.Write("\nS1 = " + S1);
Console.ReadKey();
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
C#:
UInt64 V1, V2, S, T, S1;
Console.Write("V1 = ");
V1 = Convert.ToUInt64(Console.ReadLine());
Console.Write("V2 = ");
V2 = Convert.ToUInt64(Console.ReadLine());
Console.Write("T = ");
T = Convert.ToUInt64(Console.ReadLine());
Console.Write("S = ");
S = Convert.ToUInt64(Console.ReadLine());
S1 = (V1 + V2) * T + S;
Console.Write("\nS1 = " + S1);
Console.ReadKey();