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 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.

MahaPosted Nov 29, 2019, 2:02 AM
Amit GuptaPosted Nov 29, 2019, 1:36 AM