Advertisement
Batisk_AFF

tail-2

Oct 16th, 2020
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.59 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace ConsoleApp1
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             Console.Write("x = ");
  14.             double x = Double.Parse(Console.ReadLine());
  15.             Console.Write("b = ");
  16.             double b = Double.Parse(Console.ReadLine());
  17.             double s = Math.Acos(x/b) + Math.Pow((b/x + Math.Sin(x)), 2);
  18.  
  19.             Console.WriteLine("Program output:\nx = {0}\nb = {1}\ns = {2}", x, b, s);
  20.         }
  21.     }
  22. }
  23.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement