Write a C# program that takes a number as input and then displays a rectangle of 3 columns wide and 5 rows tall using that digit
- برمجة سي شارب
- برمجة
- 2021-05-14
- MarwaMohammed
الأجوبة
using System;
public class Exercise13
{
public static void Main()
{
int x;
Console.Write("Enter a number: ");
x=Convert.ToInt32(Console.ReadLine());
Console.WriteLine("{0}{0}{0}",x);
Console.WriteLine("{0} {0}",x);
Console.WriteLine("{0} {0}",x);
Console.WriteLine("{0} {0}",x);
Console.WriteLine("{0}{0}{0}",x);
}
}أسئلة مشابهة
القوائم الدراسية التي ينتمي لها السؤال
