Posts

How To Print Alphabet C in star pattern ?

Image
What will be the solution of the given star pattern? Fig:-1 This program is executed on DEV C++ editor. You may choose any type of C or C++ editor to execute the program. This program will be same for every editor. For the printing the star pattern follow the steps as mentioned below. Step 1:- I have drawn a box of 3 Column and 5 Rows. I have inserted star in such a way that it can form alphabet C.  Fig:-2 Step 2:-   Now see in the fig 2. We can divide the star pattern in two parts 1st part for 0th row and 4th row  and 2nd part as 0th column.  Fig:- 3 Step 3:-   We have to write the condition for the 1st part and the second part. Now condition for 1st part. If row = 0 or row =4 and column != 0     (! => Not symbol ) then only we have to print star. Now for the 2nd part. If column = 0 and row != 0 or row != 4    (! => Not symbol ) then only we have to print star. This is 2 condition on which execution we will have to print...

How To Print Alphabet B in Star Pattern.

Image
What will be the solution of given star pattern? Fig : 1 This program is executed on DEV C++ editor . You may choose any C or C++ editor. It will be same for any editor. For printing star pattern we have to follow some steps. Step 1:- I have created a box of 4 columns and 7 rows. and insert  star in box as like they can form alphabets B. In the given fig: 2 Fig:2 Step 2:- Now you have to find the for printing star. So first we look at column 0. This column is full of star.And if we look at row 0, 3,and 6. then they have same pattern till column 2 . So we can write 2 different condition for this start pattern.  If column = 0 and row must be between 1 and 5. Then only we have to print star. Step 3:-   Now we have to print star in row 0, 3, and 6 and up to column 2.  If column is smaller then equal to 2 and row module 3 is equal to 0. Then only we have to print star.     Step 4:- Now we have completed our star pattern up ...

How to print alphabet A in star pattern.

Image
What will be the solution of the given problem?                                                                                                      Fig:1 This program is executed on DEV C++ editor. You may choose any C or C++ editor to execute the program it will not be same for all editor. For printing this star pattern you have to follow some steps. Step 1:-   I have created a table of  5 rows and 4 column. And inserted the following star pattern to form alphabet A . In the given figure. Fig:-2 Step 2:- Now we have to find the condition for the printing star. In 1st line we have two star means in Row 0 and we have two star in column 1 & 2. For this we have condition.   If Row = 0 a...

How to print star pattern.

What will be the solution of the given star pattern?                                           *                                         **                                       ***                                     ****                                   ***** This programming is executed on DEV C++ editor. You may use any C editor to execute this programming it will be same for all editor.  #include<stdio.h> #include<conio.h> int main() { int row,col;            ...

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);                                  ...