

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to print multiple blank lines in C#?
To display multiple blank lines, we will take a while loop.
Here, we are printing 10 blank lines using Console.WriteLine();
while (a < 10) { Console.WriteLine(" "); a++; }
The following is the complete code to display multiple blank lines −
Example
using System; namespace Program { public class Demo { public static void Main(String[] args) { int a = 0; while (a < 10) { Console.WriteLine(" "); a++; } Console.WriteLine("Displayed 10 blank lines above!\n"); Console.ReadLine(); } } }
- Related Questions & Answers
- How can we print multiple blank lines in python?
- How to print a blank line in C#?
- How to use getline() in C++ when there are blank lines in input?
- Program to print last 10 lines in C++
- Program to print last N lines in c++
- How to match pattern over multiple lines in Python?
- How to write multiple lines in text file using Python?
- How to display multiple lines of text in Tkinter Label?
- Print “Hello World” with empty or blank main in C++
- Print Single and Multiple variable in C#
- How to create multiple regression lines using ggplot2 in R?\n
- Advantage of multiple chip select lines
- Regular expression matches multiple lines in Java
- Matching multiple lines in Java regular expressions
- Regex to match lines containing multiple strings in Java
Advertisements