0

can i use float x in function vab() insted of double how???

protected static void vab(double x) { System.Console.WriteLine("hello"+x*2); } public static void Main(string[] args) { System.Console.WriteLine("hello"); vab(1.2); vab(13); vab(1.4); }

13th Jul 2018, 3:04 PM
VAIBHAV BOROLE
VAIBHAV BOROLE - avatar
1 Answer
+ 1
Put an f after the number e.g. 1.2f
13th Jul 2018, 3:17 PM
TurtleShell
TurtleShell - avatar