Maha

Maha

  • NA
  • 600
  • 67.3k

Desired Output of a separator

Nov 29 2019 1:18 AM
I want a output like this ======================. How to get it?  
 
using System;
namespace ConsoleApp3
{
class Program
{
static void Main(string[] args)
{
string proteinIntake = "Protein Intake Week: 1";
string separator = new string('=', proteinIntake.Length);
Console.WriteLine(separator);
}
}
}
 

Answers (2)