Q:- Print * 10 times Horizontally using C# Console Application???
Ans- using System;
using System.Collections.Generic;
using System.Text;
namespace codeforevenorodd
{
class Program
{
static void Main(string[] args)
{
for(int i=0; i<10; i++)
{
Console.Write("*");
}
Console.ReadLine();
}
}
}
No comments:
Post a Comment