C Program to Print Consecutive Row Numbers in Right Triangle
Write a C program to print consecutive row numbers in right triangle pattern using for loop. #include <stdio.h> int main() { int i, j, rows, val; printf(“Enter Right Triangle Consecutive Row Nums Pattern Rows = “); scanf(“%d”,&rows); printf(“\nThe Consecutive Numbers in Right Triangle Row Pattern\n”); for (i = 1; i <= rows; i++ ) { … Read more