Student
Name:Shinde
Sachin Dadarao.                                     Roll No: 149
Program
name: Wap
to display Area of Circal.
#include<stdio.h>
#include<conio.h>
void
main()
{
float
radius,area;
clrscr();
printf("\n
enter the value of radius");
scanf("\n
%f",&radius);
area=3.14*radius*radius;
printf("\n
Area of  Circle  %f",area);
getch();
}
/* output
 Enter the value of radius: 5
Area of Circle: 78.500000 */
Student Name: Shinde Sachin
Dadarao.                                                    Roll No: 149
Program Name: wap to swap two
numbers with using third variable. 
#include<stdio.h>
#include<conio.h>
void
main()
{
int
a,b,temp;
clrscr();
printf("\n
enter the value of a");
scanf("\n
%d",&a);
printf("\n
enter the value of b");
scanf
("\n %d",&b);
temp=a;
a=b;
b=temp;
printf("\n
swapped a is %d",a);
printf("\n
swapped b is %d",b);
getch();
}
/* Output
 Enter the value of a:49
 Enter the value of b:25
 Swapped value a is: 25
 Swapped value b is:49 */
Student Name: Shinde Sachin
Dadarao.                                 Roll
NO: 149
Program Name: wap
to convert Fahrenheit to Celsius
#include<stdio.h>
#include<conio.h>
void main()
{
int fh,cl;
clrscr();
printf("\n enter the value of
fh");
scanf("\n %d",&fh);
cl=(fh-32)/1.8;
printf("\n convert celcius
%d",cl);
getch();
}
/* Output
 Enter the value of fh: 100
 Convert Celsius: 37 */
Student
Name: Shinde
Sachin Dadarao.                                          Roll No:
149
Program
Name:Wap to convert celcius to fharenhite.
#include<stdio.h>
#include<conio.h>
void main()
{
int cl,fh;
clrscr();
printf("\n enter the value of
cl");
scanf("\n %d",&cl);
fh=(cl*1.8)+32;
printf("\n convert fharenhit
%d",fh);
getch();
}
/*
Output
 Enter the value of cl: 100
 Convert Fahrenheit:212  */
Student
Name: Shinde Sachin Dadarao.                                     Roll NO:149
Program
Name: Wap to  find simple
interest.
#include<stdio.h>
#include<conio.h>
void
main()
{
float
p,n,r,si;
clrscr();
printf("\n
enter the value of p");
scanf("\n
%f",&p);
printf("\n
enter the value of n");
scanf("\n
%f",&n);
printf("\n
enter the value of r");
scanf("\n
%f",&r);
si=(p*n*r)/100;
printf("\n
simple intress  is %f",si);
getch();
}
/*
Output 
 Enter the value of p:5000
 Enter the value of n:2
 Enter the value of r:10
 Simple intress is: 1000.000000   */
Student
Name: Shinde
Sachin Dadarao.                                        Roll
No:149
Program
Name: Write a program to find compound
interest.
#include<stdio.h>
#include<conio.h>
#include<math.h>
void
main()
{
float
p,n,r,ci;
clrscr();
printf("\n
enter the value of p");
scanf("\n
%f",&p);
printf("\n
enter the value of n");
scanf("\n
%f",&n);
printf("\n
enter the value of r");
scanf("\n
%f",&r);
ci=p*pow((1+r)/100,n);
printf("\n
%f",ci);
getch();
}
/*output
 Enter the value of p2000
 Enter the value of n1
 Enter the value of r5
 120.000000 */
Student
Name: Shinde Sachin Dadarao.                                        Roll No:149
Program
Name: Write a program to find average of 3
subject’s marks.
#include<stdio.h>
#include<conio.h>
void
main()
{
int
avg,sub1,sub2,sub3;
clrscr();
printf("\n
enter the value of sub1");
scanf("\n
%d", &sub1);
printf("\n
enter the value of sub2");
scanf("\n
%d",&sub2);
printf("\n
enter the value of sub3");
scanf("\n
%d",&sub3);
avg=(sub1+sub2+sub3)/3;
printf("\n
%d display avg of",avg);
getch();
}
/* output
 Enter the value of sub1-79
 Enter the value of sub2-65
 Enter the value of sub3-86
 Display avg of 76 */
 
