Skip to content

CSE-SJCET/pattern_printing_assignment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

⭐ Pattern Printing using Nested Loops

Objective

Write a Python program to print a right-angled triangle star pattern using nested loops.

Pattern Example (n = 5)

*
* *
* * *
* * * *
* * * * *

Instructions

  1. Prompt the user for the number of rows
  2. Use nested loops only
  3. Follow the exact output format
  4. Do not print extra spaces or lines

Example Input

5

Example Output

*
* *
* * *
* * * *
* * * * *

Auto-Grading

Test Case Rows Points
Test 1 3 5
Test 2 5 5
Test 3 7 5
Total: 15 Points

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages