Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- /*
- * Which of the following values can be assigned to a variable of type float and which to a variable of type
- * double: 34.567839023, 12.345, 8923.1234857, 3456.091
- */
- class FloatAndDoubleVariables
- {
- static void Main()
- {
- double a = 34.567839023;
- float b = 12.345f;
- double c = 8923.1234857;
- float d = 3456.091f;
- Console.WriteLine(" float numbers -> {0} and {1}\n double numbers -> {2} and {3}", b, d, a, c);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement