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
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
Math,
3 months ago
Computer Science,
3 months ago
Social Sciences,
3 months ago
Psychology,
6 months ago
Social Sciences,
6 months ago
English,
11 months ago