Advertisement
-Annie-

PracticeFloatingPointNumbers

Jun 10th, 2017
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.40 KB | None | 0 0
  1. namespace Homework
  2. {
  3.     using System;
  4.  
  5.     public class Program
  6.     {
  7.         public static void Main()
  8.         {
  9.             decimal num1 = 3.141592653589793238M;
  10.             double num2 = 1.60217657;
  11.             decimal num3 = 7.8184261974584555216535342341M;
  12.  
  13.             Console.WriteLine(num1);
  14.             Console.WriteLine(num2);
  15.             Console.WriteLine(num3);
  16.         }
  17.     }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement