Computer Science, asked by prarthanaananthaudup, 6 months ago

Write a program in C to make such a pattern like a pyramid with numbers increased by 1. The pattern is as follows:

1
2 3
4 5 6
7 8 9 10
how to do this with while loop?

Answers

Answered by VinodKaswan
1

Explanation:

A while loop in C programming repeatedly executes a target statement as long as a given condition is true.

Syntax

The syntax of a while loop in C programming language is −

while(condition) {

statement(s);

}

Similar questions