Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
46 views2 pages

Dot Net Practical Format

The document describes a C# program that prints an asterisk pattern of 5 rows with 5 asterisks in each row. The program uses two nested for loops, with the outer loop iterating 5 times for the rows and the inner loop iterating 5 times for the columns in each row, printing an asterisk each iteration to generate the pattern. It then displays the output of the program which is the 5x5 asterisk pattern as intended.

Uploaded by

Innoce Jempth
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
46 views2 pages

Dot Net Practical Format

The document describes a C# program that prints an asterisk pattern of 5 rows with 5 asterisks in each row. The program uses two nested for loops, with the outer loop iterating 5 times for the rows and the inner loop iterating 5 times for the columns in each row, printing an asterisk each iteration to generate the pattern. It then displays the output of the program which is the 5x5 asterisk pattern as intended.

Uploaded by

Innoce Jempth
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Sardar Vallabhbhai Patel Institute of Technology- Vasad

Name:-________________________________ ErNO:-_________________
Class:

Practical 01

AIM : Write C# code to display the asterisk pattern as shown below:


*****
*****
*****
*****
*****
Program:-
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace pr1
{
class Program
{
static void Main(string[] args)
{
for (int i = 0; i <= 5; i++)
{
for (int j = 0; j <= 5; j++)
{
Console.Write("*");
}
Console.WriteLine();
}
Console.ReadLine();
}
}
}

DOT NET TECHNOLOGY 2160711 Page 1


Sardar Vallabhbhai Patel Institute of Technology- Vasad

Output:-

DOT NET TECHNOLOGY 2160711 Page 2

You might also like