Skip to content

senadurarslan/nested-loop-pattern

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nested Loop Pattern Generator

This repository contains a simple C program that demonstrates the use of nested loops to generate a specific number pattern.

Description

The program prints a numerical pattern using two nested while loops. The outer loop controls the rows, while the inner loop prints numbers in an increasing order.

Example Output:

1  2  3  4  5
2  3  4  5  6
3  4  5  6  7
4  5  6  7  8
5  6  7  8  9

How to Compile and Run

  1. Ensure you have a C compiler installed (e.g., gcc).
  2. Open a terminal or command prompt and navigate to the project directory.
  3. Compile the program using:
  4. Run the program:

./pattern

Files in the Repository

  • main.c - The source code of the program.

Requirements

  • C compiler (GCC, Clang, or MSVC)
  • Compatible operating system (Windows, Linux, or macOS)

License

This project is open-source and licensed under the MIT License.


Enjoy coding! 🚀

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages