Friday, 11 January 2019

Pattern 10 using c[c programming examples with output]

C programming examples with output

Pattern
Program

#include<stdio.h>
#include<conio.h>
void main()
{
     int i,j;
     clrscr();
     for(i=1;i<=5;i++)
     {
         for(j=1;j<=i;j++)
         {
              printf("*");
         }
              printf("\n");
     }
     getch();
}

Output

*
**
***
****
*****

Best Budget Laptop For Web Developers 2019

Best Budget Laptop For Programmers: https://amzn.to/32GkrqC

Pattern 9 using c[c programming examples with output]

C programming examples with output

Pattern


Program
#include<stdio.h>
#include<conio.h>
void main()
{
    char i'j;
    clrscr();
    for(i='E';i>='A';i--)
    {
        for(j='E';j>="A';j--)
        {
            printf("%c",j);
        }
            printf("\n");
    }
    getch();
}

Best Budget Laptop For Web Developers 2019
Best Laptop For Programmers: https://amzn.to/32GkrqC

Pattern 8 using c[c programming examples with output]

C programming examples with output

Pattern
Program
#include<stdio.h>
#include<conio.h>
void main()
{
     char i,j;
     clrscr();
     for(i='E';i>='A';i--)
     {
         for(j='E';j>='A';j--)
        {
            printf("%c",i);
         }
            printf("\n");
     }
     getch();
}

Output:
EEEEE
DDDDD
CCCCC
BBBBB
AAAAA

Pattern 7 using c[c programming examples with output]

C programming examples with output

Pattern

Pattern
Program

#include<stdio.h>
#include<conio.h>
void main()
{
       int i,j;
       clrscr();
       for(i=5;i>=1;i--)
       {
            for(j=5;j>=1;j--)
            {
                  printf("%d",j);
             }
                  printf("\n");
             }
      getch();
}