Q:-What is the Difference between System.console.WriteLine() and System.console.Write() method
example?
Ans:-Both the method enable you to print information on the screen in the same manner, but with a small difference...
System.console.WriteLine() prints the Information on Screen and goes to new Line. However,
System.console.Write(0 print the Information on the Screen , but does not go to new Line.
for example:
using System;
using System.Collections.Generic;
using System.Text;
namespace different_program
{
class Program
{
static void Main(string[] args)
{
System.Console.WriteLine("Welcome To TechFusion");
System.Console.WriteLine("Welcome to IT Programming Sikho \n");
//\n use for the line space of the comment
System.Console.Write("Hello IT Friends How Are You \t");
// \t use for the space of the same line comment
System.Console.Write("I Hope This Blog Helpfull for U");
console.ReadLine(); // console.ReadLine() use for see output..
}
}
}
See output below This program....
more article or Q &A U visit this site
more article amd Q &A mail me
example?
Ans:-Both the method enable you to print information on the screen in the same manner, but with a small difference...
System.console.WriteLine() prints the Information on Screen and goes to new Line. However,
System.console.Write(0 print the Information on the Screen , but does not go to new Line.
for example:
using System;
using System.Collections.Generic;
using System.Text;
namespace different_program
{
class Program
{
static void Main(string[] args)
{
System.Console.WriteLine("Welcome To TechFusion");
System.Console.WriteLine("Welcome to IT Programming Sikho \n");
//\n use for the line space of the comment
System.Console.Write("Hello IT Friends How Are You \t");
// \t use for the space of the same line comment
System.Console.Write("I Hope This Blog Helpfull for U");
console.ReadLine(); // console.ReadLine() use for see output..
}
}
}
See output below This program....
more article or Q &A U visit this site
more article amd Q &A mail me
0 comments:
Post a Comment