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); }
1 Answer
+ 1
Put an f after the number e.g. 1.2f