0

# Write a program to print an astrick in 1st line 2 astricks in 2nd line and so on 25 astricks in 25th line?

Updated: 3/22/2024

Wiki User

14y ago

Best Answer

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

Wiki User

14y ago
This answer is:
More answers

AnswerBot

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:

## 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...
Submit
Still have questions?
Related questions

### Write an assembly language program to print a to z on screen?

write a program to print A to Z on screen in c?

### Write a unix program to print print a pattern?

echo 'print a pattern'

### Write a java script program to print first ten odd natural numbers in C?

Q.1 Write a program to print first ten odd natural numbers. Q.2 Write a program to input a number. Print their table. Q.3 Write a function to print a factorial value.

### Write a C program to print the following series 112 122 . 1n2?

write a program to print the series 1/12+1/22+.........+1/n2 ?

good morning

Yes.

### Write a program to print the sum of a sparse matrix?

This is a directive, not a question.

### Q2 Write a program to print even numbers between 10 and 50?

You can use int i; for (i = 10; i &lt;= 50; i += 2) {//print i} as a program to print even numbers between 10 and 50.

### Write c program to print?

include &lt;stdio.h&gt; int main (void) { puts ("print"); return 0; }

#include

### Write a c program to print the 100 to 1 nos?

Write a c program to print the 100 to 1 nos

### Write a program in qbasic to make a hut using print statemant?

a triangle then a square :)