
Triangle Star Pattern Task
Your task is to print a triangle pattern using stars (*) for a given integer N, which represents the number of rows.
Input:
Integer N (Total number of rows)
Output:
The triangle pattern printed over N lines
Example:
Input:
N = 4
Output:
*
**
***
****
Constraints:
0 <= N <= 50
Note:
There are no spaces between the stars (*) on each line.

AnswerBot
4d

Print a triangle pattern using stars for a given number of rows N.
Use a nested loop to iterate through each row and column to print the stars.
Increment the number of stars printed in each row by 1.
Ens...read more
Satyam Kashyap
1mo

In this C Programming example, you will learn to print half pyramid, pyramid, inverted pyramid, Pascal's Triangle and Floyd's triangle
Satyam Kashyap
1mo

In this C Programming example, you will learn to print half pyramid, pyramid, inverted pyramid, Pascal's Triangle and Floyd's triangle.
Satyam Kashyap
1mo

In this C Programming example, you will learn to print half pyramid, pyramid, inverted pyramid, Pascal's Triangle and Floyd's triangle.
Anonymous
2mo

1
Anonymous
4mo

Hai
Anonymous
4mo

8
Thiruselvam
8mo
ex -
I m fresher

Given a number n the task is to print the star pattern in singing loop. Approach the idea is to . break a column into three parts and solve each . parts independently. Of the other. The triangle numbe...read more
Arti. Prajapati
1y

Given a number n the task is to print the star pattern in singing loop. Approach the idea is to . break a column into three parts and solve each . parts independently. Of the other. The triangle numbe...read more
Anonymous
2y

import java.util.Scanner; public class Solution { public static void main(String[] args) { Scanner s=new Scanner(System.in); int n; n=s.nextInt(); int i=1; while(i<=n) { int j=; while(j<=i) { System.o...read more
MILAN SENAPATI
2y

#include<iostream> using namespace std; int main(){ int N; cout<<"enter N"<<endl; cin>>N; int i; while (i<=N) { int j=1; while (j<=i) { cout<<"*"; j++; } cout<<endl; i++; } return 0; ...read more
Add answer anonymously...
Top Wipro Project Engineer interview questions & answers
Popular interview questions of Project Engineer
Top HR questions asked in Wipro Project Engineer
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app