Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Intuit // C# // listing_4.5 (Math. /Pow /Sin)
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { //Your code goes here //Console.WriteLine("Hello, world!"); Console.WriteLine("Enter the x: "); double x = double.Parse(Console.ReadLine()); Console.WriteLine("Enter the y: "); Double y = double.Parse(Console.ReadLine()); Console.WriteLine("Maximum of x & y is: " + Math.Max(x,y)); double z = Math.Pow(Math.Sin(x),2) + Math.Pow(Math.Sin(y),2); Console.WriteLine("Сумма квадратов синусов чисел X & Y: " + z); } } }
run
|
edit
|
history
|
help
0
Testing 9
Pizzas & Array of Tuples
Non-User input - Random Controlled - Guessing Game
iLoveLizzy
Homework3
10
D16
Pyramid using C#
radix sort
MC