This repository contains a simple C program that demonstrates the use of nested loops to generate a specific number pattern.
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.
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
- Ensure you have a C compiler installed (e.g.,
gcc
). - Open a terminal or command prompt and navigate to the project directory.
- Compile the program using:
- Run the program:
./pattern
main.c
- The source code of the program.
- C compiler (GCC, Clang, or MSVC)
- Compatible operating system (Windows, Linux, or macOS)
This project is open-source and licensed under the MIT License.
Enjoy coding! 🚀