How to Print The Given Pattern
What will be the solution of the given pattern in c programming language? Fig:-1 This program is executed on DEV C++ editor. You may use any C or C++ editor to execute the program. logic and programming will be same. For this programming there are many type of programming solution. But I will discus only two of them one the best solution and one the common solution which you found on Internet. 1st type of solution and it's logic. Programming:- #include<stdio.h> #include<conio.h> int main() { int row,col; //variable deceleration. for (row= 1 ;row<= 5 ;row++) // For row { for (col= 1 ;col<=row;col++) //For column { printf( " %d" ,col); //Printing Number pattern } printf( "\n" ); //For new line } getch(); ...