Download the following programs....

find your name program in turbo C ++

Image result for small icon of turbo c++#include<stdio.h>
#include<conio.h>

char arr[]={"ABCDEFGHIJKLMNOPQRSTUVWXYZ    "};
int pos1[20];
int pos2[20];

void main()
{
int i,no,j,z;
textattr(1<<4|14);
clrscr();
cprintf("Asume A Word!\n\n\rStep 1:\n\r=======\n\rTabel 1:\n\n\r");
textattr(1<<4|12);
for(i=0;i<5;i++)
cprintf("%d ",i+1);
textattr(7<<4);
for(i=0;i<30;i++)
 {
 if(i%5==0)
 printf("\n");
 cprintf("%c ",arr[i]);
 }
textattr(1<<4|14);
gotoxy(1,15);
cprintf("\n\n\rEnter Total Number of letters in word:");
cscanf("%d",&no);
cprintf("                                            ");
for(i=0;i<no;i++)
{
gotoxy(1,15);
cprintf("\n\n\rEnter Letter %d Coloumn number:",i+1);
scanf("%d",&pos1[i]);
pos1[i]-=1;
}
clrscr();
cprintf("Step 2:\n\rTabel 2:\n\r");
textattr(1<<4|12);
for(i=0;i<6;i++)
cprintf("%d ",i+1);
textattr(7<<4);
for(i=0;i<no;i++)
 {
 printf("\n");
 for(j=pos1[i];j<30;j+=5)
    cprintf("%c ",arr[j]);
 }
textattr(1<<4|14);
for(i=0;i<no;i++)
{
gotoxy(1,15);
cprintf("\n\n\rEnter the  %d Letter's Coloumn number:",i+1);
scanf("%d",&pos2[i]);
pos2[i]-=1;
}
clrscr();
gotoxy(30,13);
cprintf("We Got U! ");
gotoxy(30,15);
cprintf("SURPRISED!");
textcolor(WHITE+BLINK);
gotoxy(30,14);
for(i=0;i<no;i++)
{
cprintf("%c",arr[pos2[i]*5+pos1[i]]);
}
textcolor(YELLOW+BLINK);
cprintf("\n\n\n\n\n\n\n\n\rPress Esc To Exit...");
while(getch()!=27);
}


find the square or cube of any number

#include<stdio.h>
#include<conio.h>
void main()
{
int n,sq,cu;
clrscr();
printf("Enter any number\n");
scanf("%d",&n);
sq=n*n;
cu=n*n*n;
printf("The square is %d \nThe cube is %d",sq,cu);
getch();
}



find that the number is odd or even

#include<stdio.h>
#include<conio.h>
void main()
{
int n;
clrscr();
printf("enter any number\n");
scanf("%d",&n);
if(n%2==0)
printf("the number is even");
else
printf("the number is odd");
getch();
}



To find the highest and smallest number

#include<stdio.h>
#include<conio.h>
void main()
{
int n1,n2;
clrscr();
printf("enter any number\n");
scanf("%d\n%d",&n1,&n2);
if(n1>n2)
{
printf("\nThe highest number is %d",n1);
printf("\nThe smallest number is %d",n2);
}
else
{
printf("\nThe higest number is %d",n2);
printf("\nThe smallest number is %d",n1);
}
getch();
}



Find expanded form of 4 digit number

#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int n,a,b,c,d,e,f,g;
cout<<"enter any four digit number\n";
cin>>n;
a=n/1000;
b=n%1000;
c=b/100;
d=b%100;
e=d/10;
f=d%10;
g=f/1;
cout<<"expanded form of number="<<a<<"*1000+"<<c<<"*100+"<<e<<"*10+"<<g;
getch();
}



convert fahrenheit to celsius or celsius to fahrenheit

#include<stdio.h>
#include<conio.h>
void main()
{
int choice;
float c,f;
clrscr();
printf("\t\t\t\tMAIN MENU\n");
printf("\t1.Fahrenheit to Celsius\n");
printf("\t2.Celsius to Fahrenheit\n");
printf("\nEnter your choice\n");
scanf("%d",&choice);
if(choice==1)
{
printf("\nEnter temperature in Fahrenheit\n");
scanf("%f",&f);
c=(f-32)/1.8;
printf("\nThe temperature in Celsius:%f",c);
}
else
{
printf("\nEnter temperature in Celsius\n");
scanf("%f",&c);
f=1.8*c+32;
printf("\nThe temperature in Fahrenheit:%f",f);
}
getch();
}


To Find  the area of triangle

#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
float a,b,c,area,s;
clrscr();
printf("enter three sides of triangle\n");
scanf("%f%f%f",&a,&b,&c);
s=(a+b+c)/2;
area=sqrt(s*(s-a)*(s-b)*(s-c));
printf("area of triangle:%f",area);
getch();
}




To Find ASCII of any number

#include<stdio.h>
#include<conio.h>
void main()
{
int n;
clrscr();
printf("Enter any number\n");
scanf("%d",&n);
printf("\nASCII code of %d=%c",n,n);
getch();
}




Program to Check if a String is palindrome or not


#include<iostream.h>
#include<conio.h>
#include<stdlib.h>
void main()
{
system("cls");
char string[80],c;
cout<<"Enter a String(max.79 characters)\n";
cin.getline(string,80);
for(int len=0;string[len]!='\0';++len);
int i,j,flag=1;
for(i=0,j=len-1;i<len/2;++i,--j)
{
if(string[i]!=string[j])
{
flag=0;
break;
}
}
if(flag)
cout<<"It is palindrome\n";
else
cout<<"It is not a palindrome\n";
getch();
}



Program to find the number when their sum and product is known

using(x*x-sx+p)



#include<iostream.h>
#include<conio.h>
#include<stdlib.h>
#include<math.h>
void main()
{
system("cls");
int s,p,a,b,c;
cout<<"Enter the sum of the two numbers:"<<"\n";
cin>>s;
cout<<"Enter product of the two numbers:"<<"\n";
cin>>p;
if(s>0)
cout<<"\nQuadratic equation is:x*x-"<<s<<"+"<<p<<endl;
else
cout<<"Quadratic equation is:x*x+"<<s<<"+"<<p<<endl;
a=1;
b=-s;
c=p;
cout<<"Coefficients are:a="<<a<<",b="<<b<<",c="<<c<<endl;
double discriminant=b*b-4.0*a*c;
double sqroot=sqrt(discriminant);
double root1=(-b+sqroot)/(2.0*a);
double root2=(-b-sqroot)/(2.0*a);
cout<<"Two numbers whose sum is"<<s<<"&product is"<<p<<"are:"<<endl;
cout<<"Number1:"<<root1<<",number2:"<<root2<<endl;
getch();
}

more.....