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);
}
}
}
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Amit GuptaRank #190 · 12.8K reputationPosted Nov 28, 2019, 8:36 PM EST
MahaRank #2,573 · 543 reputationPosted Nov 28, 2019, 9:02 PM EST