Hi Guys, Take a look of my blog. I hope you'll find it interesting if you are in search of Notes. Here you will find Notes of C++ , VC++, Cryptography, Web Technology and System Analysis & Development. For further updates keep your eyes on it.
If you want to share any new idea or feedback, you are welcome. Contact me using links given above.
hi can someone give me the coding of following pattern
ReplyDeletetaking input from user pls help me
ABCD
ABC
AB
A
and
ABCD
- BCD
-- CD
----- D
pls
hi can someone give me the coding of following pattern
ReplyDeletetaking input from user
ABCD
ABC
AB
A
and
ABCD
- BCD
-- CD
----- D
pls
#include
Delete#include
void main()
{
int i,j,n;
clrscr();
printf("Enter limit for pattern: ");
scanf("%d",&n);
for(i=0;i<n;i++)
{
for(j=0;j<n-i;j++)
{
printf("%c",65+j);
}
printf("\n");
}
getch();
}
#include
Delete#include
void main()
{
int i,j,k,n;
clrscr();
printf("Enter limit for pattern: ");
scanf("%d",&n);
for(i=0;i<n;i++)
{
for(k=0;k<i;k++)
{
printf(" ");
}
for(j=0;j<n-i;j++)
{
printf("%c",65+j+i);
}
printf("\n");
}
getch();
}