using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Nameinput
{
class Program
{
static void Main(string[] args)
{
int n,i;
string name;
Console.WriteLine("Enter name");
name = Console.ReadLine();
Console.WriteLine("Enter number for print");
n=Convert.ToInt32(Console.ReadLine());
i=n;
for (i = 1; i <= n; i++)
{
Console.WriteLine(name);
}
Console.ReadLine();
}
}
}
No comments:
Post a Comment