VelizarAvramov

02. Practice Floating Points

Nov 28th, 2019
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.62 KB | None | 0 0
  1. using System;
  2.  
  3. namespace _02._Practice_Floating_Points
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             decimal firstNum = decimal.Parse(Console.ReadLine());    //3.141592653589793238
  10.             double secondNum = double.Parse(Console.ReadLine());     //1.60217657
  11.             decimal thirdNum = decimal.Parse(Console.ReadLine());
  12.                                                      //7.8184261974584555216535342341
  13.             Console.WriteLine($"{firstNum}");
  14.             Console.WriteLine($"{secondNum}");
  15.             Console.WriteLine($"{thirdNum}");
  16.         }
  17.     }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment