Advertisement
thegrudge

FloatOrDouble

Nov 13th, 2014
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.61 KB | None | 0 0
  1. using System;
  2. class FloatOrDouble
  3. {
  4.     static void Main()
  5.     {
  6.         double firstVariable = 34.567839023;
  7.         float secondVariable = 12.345F;
  8.         double thirdVariable = 8923.1234857;
  9.         float fourthVariable = 3456.091F;
  10.         Console.WriteLine("1st number shoud be 34.567839023 and it is: {0}", firstVariable);
  11.         Console.WriteLine("1st number shoud be 12.345 and it is: {0}", secondVariable);
  12.         Console.WriteLine("1st number shoud be 8923.1234857 and it is: {0}", thirdVariable);
  13.         Console.WriteLine("1st number shoud be 3456.091 and it is: {0}", fourthVariable);
  14.     }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement