About 392,000 results
Open links in new tab
  1. c# - How to print asterisk pattern with asterisk - Stack Overflow

    Jul 19, 2021 · I'm doing this for my school library where I need to print asterisk pattern like below with *'s. * * *** * * Below is what I tried, class Asterisks. static void Main(string[] args) int n = 7; …

  2. C# - Pattern as a pyramid with an odd number of asterisks

    Dec 20, 2024 · Write a program in C# Sharp to display the pattern like a pyramid using asterisk and each row contain an odd number of asterisks. The pattern is as below: Visual Presentation:

  3. Practical 1: Write C# Code To Display The Asterisk Pattern

    Practical 1: Write C# Code To Display The Asterisk Pattern The document contains 5 code examples that demonstrate various concepts in C#: 1. The first example displays asterisk …

  4. Diamond Pattern Program in C# - GitHub

    This program written in C# generates a diamond pattern using nested for loops. It utilizes output statements that display a single asterisk (*), a single space, or a single newline character only …

  5. Writing a simple for statement program that shows asterisks

    Nov 23, 2012 · You should have an outer loop for the number of lines, and an inner loop for the asterisks. When the inner loop is done printing the asterisks, the outer loop prints a newline, …

  6. c# - How to add asterisk and hyphen between two adjacent even

    Aug 25, 2017 · string numbers = "12467930"; char[] delimiters = { '-', '*' }; StringBuilder result = new StringBuilder(numbers.Length * 2); for (int i = 0; i < numbers.Length - 1; ++i) { int value1 = …

  7. How to create an asterisk pattern through string? (C#)

    Jan 12, 2019 · "Write a method called BoxMaker that takes two parameters, width and height. The method needs to build a box in a string using asterisks for the given width and height and …

  8. A program that prints the number of asterisks that the user inputs ...

    Nov 17, 2016 · Write a program that prints 5 bar graphs with asterisks. A function that accepts the length (number of asterisks) should be created and then called 5 different times to print the …

  9. c# - How to go about storing multiple values from a loop, and ...

    Oct 25, 2011 · This question asks to write a program that accepts input for five 'stores'. The input should ideally be a range from 100 to 2000. Each input should be divided by 100, and have …

  10. how to separate numbers by asterisks c# - Stack Overflow

    Nov 16, 2014 · You should put the body of the loop into a scope: Console.WriteLine(i); Console.WriteLine("********"); Otherwise only the following next command is interpreted as the …

Refresh