using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace part6
{
class Program
{
static void Main()
{
Console.Write("Input the number of an asterisk = ");
int n = int.Parse(Console.ReadLine());
for (int i = 0; i < n; i++)
{
for (int j = 0; j < n; j++)
{
if ((i == 0) || (j == 0) || (i == n - 1) || (j == n - 1))
Console.Write("+");
else if ((i == 1) || (j == 1) || (i == n - 2) || (j == n - 2))
Console.Write("*");
else
Console.Write("9");
}
Console.WriteLine();
}
Console.ReadLine();
}
}
}
Cara membuat program sederhana print asterisk(bintang) c# Asp.Net Part6
Ikuti Code dibawah ini :
1 comments:
Write commentsReview of Slot Machines in Casino at Jamul Casino
ReplyJamul Casino Resort has a bet365 korea list of 토토 프로토 slots, 슬롯 나라 video poker, blackjack, roulette, keno, 룰렛 프로그램 and slots. The 맥스 88 main slot games are video poker, blackjack,
ConversionConversion EmoticonEmoticon