Aug 25, 2013

FLAG DESIGN BY GRAPHICS IN C

*/FLAG DESIGN BY GRAPHICS IN C/*

This is very easy coding for design flag by programming c. You can use it very easily. If you want to use this code self copy it and paste it turboo C soft. If you want to change this flag only change the color name and write there the color name that you choose and then Run it then you will see your wanted flag.

#include<stdio.h>
#include<conio.h>
#include<graphics.h>
void main()
{
int driver,mode;
driver=DETECT;
mode=0;
initgraph(&driver,&mode,"c://tc//bgi");
setcolor(GREEN);
rectangle(40,80,600,400);
setfillstyle(1,2);
floodfill(320,240,GREEN);
setcolor(RED);
circle(300,200,100);
setfillstyle(1,2);
floodfill(320,240,RED);
getch();
}


And this output this graphics

Ok Now start your creation. 

Apr 22, 2013

Many Newspaper List

                Many Newspaper List

Now everyone can read many newspaper very easily. Here have many newspaper list. You can read your likely newspaper from here. Here have all Bangladeshi newspaper list. So now enjoy and read and read  more newspaper and know  more and more about Bangladesh.

Feb 2, 2013

Fibonacci Program OF 10 NUMBER




#include"stdio.h"
#include"conio.h"
#include"math.h"
void main()
{
clrscr();
int i,f0,f1=1,fibo;
printf("The Fibonacci Series is=");
for(i=1;i<=10;i++);
{
fibo=f0+f1;
printf("%d\t",fibo);
f1=f0;
f0=fibo;
}
getch();
}

Add of n number Program

/*Add of n number Program*/

#include"stdio.h"
#include"conio.h"
#include"math.h"
void main()
{
clrscr();
int i,n,average,sum=0;
printf("Enter the value of n=");
scanf("%d",&n);
for(i=1;i<=n;i++);
sum=sum+i;
average=sum/n;
printf("The Summation is=%d\n",sum);
printf("The Average is=%d",average);
getch();
}

The Series Program

/*The Series Program*/

#include"stdio.h"
#include"conio.h"
#include"math.h"
void main()
{
clrscr();
int i;
printf("The series is=");
for(i=1;i<=50;i++)
printf("\t%d",i);
getch();
}

See Uppercase or lower case yes or not Program

/*See Uppercase or lower case yes or not Program*/

#include"stdio.h"
#include"conio.h"
#include"ctype.h"
void main()
{
clrscr();
char alphabet;
printf("Enter an alphabet=");
scanf("%c",&alphabet);
alphabet=getchar();
if(islower(alphabet))
putchar(toupper(alphabet));
else
putchar(tolower(alphabet));
getch();
}

Factorial Program

/*Factorial Program*/

#include"stdio.h"
#include"conio.h"
#include"math.h"
void main()
{
clrscr();
int i,n,fact=1;
printf("Enter the value of n=");
scanf("%d",&n);
if(n<0)
{
printf("Negative numbers are not allowed");
}
else
if(n==0)
printf("Factorial of =%d%d",n,fact);
else
{
for(i=2;i<=n;i++);
fact=fact*i;
printf("Factorial of=%d%d",n,fact);
}
getch();
}

Popular Posts