Advertisement
Nasibulova

математическое выражение

Jul 16th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.56 KB | None | 0 0
  1. class Program
  2.     {
  3.         static void Main(string[] args)
  4.         {
  5.             Console.WriteLine("Enter a , b ,f");
  6.             Console.WriteLine("Enter a =");
  7.             int a = Convert.ToInt32(Console.ReadLine());
  8.             Console.WriteLine("Enter b =");
  9.             int b = Convert.ToInt32(Console.ReadLine());
  10.             Console.WriteLine("Enter f =");
  11.             int f = Convert.ToInt32(Console.ReadLine());
  12.             int result = (a + b - f / a) + f * a * a - (a + b);
  13.             Console.WriteLine("Result = " + result);
  14.         }
  15.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement