ABC Pattern Design In C Program Tamil


/*
A B C D E F G G F E D C B A
A B C D E F     F E D C B A
A B C D E         E D C B A
A B C D               C B A
A B                     B A
A                         A
*/
#include<stdio.h>
#include<conio.h>
void main()
{
  int i,j,k,l,n=7;
  clrscr();
  for(i=0;i<n;i++)
  {
     k=65;
     l=71-i;
     for(j=0;j<n-i;j++)
     {
       printf("%c",k);
       k++;
     }
     for(j=0;j<i;j++)
     {
	printf("  ");
     }
     for(j=0;j<n-i;j++)   //www.tutorjoes.com
     {
	printf("%c",l);
	l--;
     }
     printf("\n");
  }
  getch();
}

Login To Download Source Code

Leave a Comment:

Login To Comment

List Of Programs


Goto Examples

Operators

Looping

Number Conversion

Pattern Design

Arrays

Matrix Examples

Sorting Examples

String Function

Change Case

String In C

Maths Functions

User Defined Functions

Recursive Functions

Pointer

Structure

File Concept

Calender Programming