Best Answer

With a nested loop this is fairly simple. Example, in Java: for (int i = 1; i

User Avatar

Wiki User

14y ago
This answer is:
User Avatar
More answers
User Avatar


2mo ago

Here is a simple Python program to print asterisks as described:

for i in range(1, 26):
    print('*' * i)

This will output asterisks from 1 to 25 as required.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write a program to print an astrick in 1st line 2 astricks in 2nd line and so on 25 astricks in 25th line?
Write your answer...
Still have questions?
magnify glass