Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class FloatOrDouble
- {
- static void Main()
- {
- double firstVariable = 34.567839023;
- float secondVariable = 12.345F;
- double thirdVariable = 8923.1234857;
- float fourthVariable = 3456.091F;
- Console.WriteLine("1st number shoud be 34.567839023 and it is: {0}", firstVariable);
- Console.WriteLine("1st number shoud be 12.345 and it is: {0}", secondVariable);
- Console.WriteLine("1st number shoud be 8923.1234857 and it is: {0}", thirdVariable);
- Console.WriteLine("1st number shoud be 3456.091 and it is: {0}", fourthVariable);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement