How to do this program?
1
2 3
4 5 6
7 8 9 10
☆ANSWER IT☆
Answers
Answered by
12
// program to print numbers in a right angle triangle shape.
#include <stdio.h>
#define num_rows 5
main()
{
int row, col, num ;
num = 1;
for (row=0; row <N; row ++) {
for (col=0;col<=row;col++)
printf("%d ",num++);
printf("\n");
}
}
#include <stdio.h>
#define num_rows 5
main()
{
int row, col, num ;
num = 1;
for (row=0; row <N; row ++) {
for (col=0;col<=row;col++)
printf("%d ",num++);
printf("\n");
}
}
kvnmurty:
:-)
Answered by
2
Answer:
The next number in the sequence: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10,... is 11. Let's observe the pattern. Explanation: The given sequence is 1, 2, 3, 4, 5, 6, 7, 8, 9, 10.
Explanation:
please mark me brainliest answer
Similar questions