0

what is the difference betwn Console.WriteLine and Console.ReadLine??

c#

7/10/2016 2:11:11 AM

marl tidalgo

1 Answer

New Answer

+2

Write allows you to print something on console Like if write hello world it print on console and line means it go to next line after printing that word Read as in it allow you to take input from console and again line is same cursor goes to next line So if u want to print hello with username String username = console.readLine(); Console.WriteLine("Hello "+username); So in console if u put input as Nitin Output will be Hello Nitin And cursor on the next line