Run Code
|
API
|
Code Wall
|
Users
|
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
Please
log in
to post a comment.
30272 Example1
Exception handling2
Main 5.6
sdfrgthyjukioikujyhtgrfds
Singleton Example
time
StringBuilder
Random number + IF var change2
testing
HawkSearch field naming convention
Please log in to post a comment.