Computer Science, asked by Anushkasampa123, 1 year ago

How to do this program?
1
2 3
4 5 6
7 8 9 10
☆ANSWER IT☆

Answers

Answered by kvnmurty
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");
   }
}


kvnmurty: :-)
Anushkasampa123: Thank u sir :)
kvnmurty: Small correction: printf ("%d ", num++); The ++ missed out. please take care
abhi178: Thanks for answering
Anushkasampa123: Ok sir :)
Answered by lokhyajyotigogoi62
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