Maha

Maha

  • NA
  • 0
  • 324.6k

NP51 Carriage return \r in a program

Oct 9 2007 3:49 PM

Hi Guys

 

NP51   Carriage return \r in a program

 

I couldn’t find out any different having Carriage return \r in a program. Anyone knows please explain. I am giving a simple program for your convenient.

 

Thank you

 

using System;

public class DisplaySomeMoney

{

public static void Main()

{

double someMoney = 39.45;

int myAge = 25;

 

Console.WriteLine

("\rThe money is {0}. ${0} is a lot for my age which is {1}."

, someMoney, myAge);

}

}


Answers (2)