wingman007

KrushkovTest1Task7II

Sep 25th, 2025
376
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.60 KB | None | 0 0
  1. Console.WriteLine("Please enter H ");
  2. double H = double.Parse(Console.ReadLine());
  3. Console.WriteLine("Please, enter R: ");
  4. double R = double.Parse(Console.ReadLine());
  5.  
  6. Console.WriteLine(2 * Math.PI * R * H);
  7. Console.WriteLine(2 * Math.PI * R * H + 2 * Math.PI * Math.Pow(R,2));
  8.  
  9. Console.WriteLine("2093 to BIN {0}.", Convert.ToString(2093, 2));
  10. Console.WriteLine("2093 to OCT {0}.", Convert.ToString(2093, 8));
  11. Console.WriteLine("2093 to HEX {0}.", Convert.ToString(2093, 16));
  12.  
  13. double x1 = 2.3, x2 = 3.4, y1 = 3.2, y2 = 4.5;
  14. Console.WriteLine(Math.Sqrt(Math.Pow(x1 - x2, 2) + Math.Pow(y1 - y2, 2)));
Advertisement