2
Answers

NP51 Carriage return \r in a program

Maha

Maha

17y
1.9k
1

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)