Michael Abraham

Michael Abraham

  • NA
  • 13
  • 535

INTRODUCTION TO C# PROGRAMMING

Oct 13 2022 8:07 AM

 Console.Write("{0}", age);
        }

Please what does the{0} mean in the program below.....

class AGE
    {
        static void Main()
            {
            Console.WriteLine("Input your age:");
            int age =Convert.ToInt32(Console.ReadLine());
            Console.WriteLine("Your age after 10 years is:");
            age = age+10;
              Console.Write("{0}", age);
        }
    }
}


Answers (1)