Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class HelloWorld
- {
- static void Main()
- {
- int n, m;
- n = Convert.ToInt32(Console.ReadLine());
- m = Convert.ToInt32(Console.ReadLine());
- for(int i = 0; i <= n; i++)
- {
- for(int j = 0; j <= m; j++)
- {
- if(i == 0 || j == 0 || i == n || j == m)
- {
- Console.Write("*");
- }
- else
- {
- Console.Write(" ");
- }
- }
- Console.WriteLine();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement