Posts

How to Print Given Star Pattern

Image
What will be the general solution of given star patter in C programming language. This program is executed on Dev C++ editor. You may use any other editor the program will be same. If you face any problem then comment. 1st way #include<stdio.h> #include<conio.h> int main() { int row ,col, n;                                              //Data type declaration printf("Enter the number of rows"); scanf("%d",&n);                                        // Taking user input for number of rows for(row=1;row<=n;row++)                       // For number of rows { for(col=n;col>=row;col--)                //For number of columns { printf("*")...

How to print given star pattern.

Image
What we be the general solution of given star pattern in C programming language.                                                                      This programming is executed on Dev C++ editor. You may run this programming program on any C or C++ editor. 1st way for Star pattern programming. #include<stdio.h>          #include<conio.h> int main() { int row, col, n;                                         // data type deceleration.         printf("Enter The number of row"); scanf("%d",&n);                                  ...