2. Acknowledgement
This application on “C Language, VB Programming” was developed at
Dezyne E’cole College.
During the making of this project I have learnt a lot and I thank my mentor
Mr.Tarun Sharmaforhelping us during the making of project.
I thank my college “Dezyne E’cole College” for having conducted this
“Identity”exhibition for helping us to bring out our skill.
With due Regards,
Harendra Singh Rawat
BCA 3rd Year
3. Harendra Singh Rawat
BECHALOR OF
COMPUTER
APPLICATIONS 1ST
YEAR
Dezyne E’cole College
www.dezyneecole.com
Table Printing
C Programming
7. Harendra Singh Rawat
BECHALOR OF
COMPUTER
APPLICATIONS 1ST
YEAR
Dezyne E’cole College
www.dezyneecole.com
textcolor(15);
gotoxy(27,9);
cprintf(" Table Printing n");
for(i=1;i<=10;i++)
{
n=i*a;
gotoxy(34,input);
input++;
cprintf("%d * %d = %dnnn",a,i,n);
}
}
textcolor(10);
gotoxy(34,40);
cprintf("Do you want to Continue(Y/N)");
if(getch()=='y')
{
main();
}
else
{
exit(0);
}
getch();
}
Table Printing
C Programming
8. Harendra Singh Rawat
BECHALOR OF
COMPUTER
APPLICATIONS 1ST
YEAR
Dezyne E’cole College
www.dezyneecole.com
void main()
{
char c,d;
clrscr();
printf("tt Enter a character::");
c=getche();
printf("nntt ASCII CODE is:::%d",c);
printf("tttttnn Do you want to
continue:nn press 1 else press 0");
d=getch();
if(d=='1')
{
main();
}
else
{
exit(0);
}
}
ASCII CALCULATOR
9. ARMSTRONG CALCULATOR
Harendra Singh Rawat
BECHALOR OF
COMPUTER
APPLICATIONS 1ST YEAR
Dezyne E’cole College
www.dezyneecole.com
while(t1>0)
{
c++;
t1=t1/10;
}
while(t>0)
{
m=t%10;
p=pow(m,c);
a=a+p;
t=t/10;
}
if(a==n)
{
printf("tt Number %d is a
Armstrong number",a);
}
else
{
printf("tt not Armstrong
number");
}
10. COLOR GRID PRINTER
Harendra Singh Rawat
BECHALOR OF
COMPUTER
APPLICATIONS 1ST YEAR
Dezyne E’cole College
www.dezyneecole.com
void main()
{
int i,c;
clrscr();
window(30,4,40,20);
for(i=1,c=1;i<=200;i++,c++)
{
if(i%20==0)
{
printf("n");
}
else
{
textbackground(c);
cprintf(" ");
}
if(c==7)
{
c=1;
}
}
11. Harendra Singh Rawat
BECHALOR OF
COMPUTER
APPLICATIONS 1ST YEAR
Dezyne E’cole College
www.dezyneecole.com
void main()
{
int n,j,a[20],i=0,m=0;
clrscr();
printf("please enter your decimal
number:::");
scanf("%d",&n);
while(n>0)
{
m=n%2;
a[i]=m;
n=n/2;
i++;
}
i--;
textcolor(4);
window(30,4,40,20);
for(j=i;j>=0;j--)
{
cprintf("%d",a[j]);
}
}
Decimal to Binary Calculator
12. PALINDROM CALCULATOR
Harendra Singh Rawat
BECHALOR OF
COMPUTER
APPLICATIONS 1ST YEAR
Dezyne E’cole College
www.dezyneecole.com
void main()
{
int n,p=0,t,m;
clrscr();
printf("ntt Enter a number::");
scanf("ntt%d",&n);
t=n;
while(t>0)
{
m=t%10;
p=p*10+m;
t=t/10;
}
if(p==n)
{
printf("tt Number %d is a
palindrom number",n);
}
else
{
printf("tt Not a palindrom
number");
}
getch();
}
13. POWER CALCULATOR
Harendra Singh Rawat
BECHALOR OF
COMPUTER
APPLICATIONS 1ST YEAR
Dezyne E’cole College
www.dezyneecole.com
void main()
{
int n,p,i;
long s;
clrscr();
gotoxy(10,2);
printf("number");
gotoxy(10,4);
scanf("%d",&n);
gotoxy(20,2);
printf("power");
gotoxy(20,4);
scanf("%d",&p);
s=1;
while(p>=1)
{
s=s*n;
p--;
}
gotoxy(15,6);
printf("%ld",s);
getch();
}
14. PRIME NUMBER CALCULATOR
Harendra Singh Rawat
BECHALOR OF
COMPUTER
APPLICATIONS 1ST YEAR
Dezyne E’cole College
www.dezyneecole.com
void main()
{
int c,i,n;
clrscr();
c=0;
printf("ntt Enter a number:::");
scanf("%d",&n);
for(i=1;i<=n;i++)
{
if(n%i==0)
{
c++;
}
}
if(c==1||c==2)
{
printf("tt Number%d is a prime
number",n);
}
else
{
printf("tt Not prime number");
}
}
15. Text Printer
Harendra Singh Rawat
BECHALOR OF
COMPUTER
APPLICATIONS 1ST YEAR
Dezyne E’cole College
www.dezyneecole.com
void main()
{
char a[]="n C is one of the foundation
for modern n informationtechnology(IT).n More
than 90% of the programs running n on our desktops
from operation systems n and email client to web
browers and n games are written in C.";
int i,l;
clrscr();
l=strlen(a);
for(i=0;i<=l;i++)
{
delay(100);
printf("%c",a[i]);
}
}