डिजिटल मार्केटिंग (Digital Marketing)
Digital Marketing Tutorial
Friday, February 16, 2018
Printing Floyd's, Triangle in C with Colorful output
#include<stdio.h>
#include<conio.h>
#include<graphics.h>
void main()
{
clrscr();
int n=0;
for(int a=0;a<=5;a++)
{
for(int b=1;b<=a;b++)
{
textcolor(b+1);
n++;
cprintf("%d ",n);
}
printf("\n");
}
getch();
}
Output
1 comment:
Anonymous
February 16, 2018 at 9:32 AM
Nice program Thank for sharing with us...
Reply
Delete
Replies
Reply
Add comment
Load more...
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Print Heart With Star
#include<stdio.h> #include<conio.h> #include<graphics.h> void main() { int i,j,n; clrscr(); textcolor(RED); cprin...
Armstrong number in c with color output
#include<stdio.h> #include<conio.h> #include<graphics.h> void main() { clrscr(); int num,r,sum=0,temp; textcolor(G...
JavaFX Project For CSE and IT
Nice program Thank for sharing with us...
ReplyDelete