Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

How to take input on float in c#

using System;

public class Test
{
	public static void Main()
	{
		float n;
		n = float.Parse(Console.ReadLine());//float input
		Console.WriteLine(n);//printing the number
		
	}
}
 
PREVIOUS NEXT
Tagged: #How #input #float
ADD COMMENT
Topic
Name
2+5 =