This project has moved and is read-only. For the latest updates, please go here.

1.WAP to square of a given number. [Click here to open in Turbo C++ Directly]

#include<stdio.h>
#include<conio.h>
void main()
{
int a,square;
printf("Enter a number:");
scanf("%d",&a);
suare =a*a;
printf("The square of given number is %d",square);
getch();
}


2.WAP to find the sum of given two number. [Click here to open in Turbo C++ Directly]

#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,sum;
printf("Enter two number:");
scanf("%d%d",&a,&b);
sum=a+b;
printf("Sum of two number is %d",sum);
getch();
}


3.WAP to calculate the area & circumstance of circle. [Click here to open in Turbo C++ Directly]

#include<stdio.h>
#include<conio.h>
Void main()
{
float r,area,cir;
printf("Enter radius of circle:");
scanf("%f",&r);
area=3.14*r*r;
cir=2*3.14*r;
printf("The area of circle is %f\n The circumstance of circle is %f",area,cir);
getch();
}

Last edited Aug 31 at 7:00 PM by vineetchoudhary, version 3