/*The Youngs Modulus Program*/
#include"stdio.h"
#include"conio.h"
#include"math.h"
#define pi 3.1416
#define g 9.8
void main()
{
clrscr();
float m,L,l,r,y;
printf("Enter the Value of Mass(m)=");
scanf("%f",&m);
printf("Enter the Length of Wire(L)=");
scanf("%f",&L);
printf("Increasein Length of Wire(l)=);
scanf("%f",&l);
printf("Enter The Radius of Wire(r)=);
scanf("%f",&r);
y=(m*g*L)/(pi*r*r*l);
printf("The Youngs Modulus is=%.2f",y);
getch();
}
#include"stdio.h"
#include"conio.h"
#include"math.h"
#define pi 3.1416
#define g 9.8
void main()
{
clrscr();
float m,L,l,r,y;
printf("Enter the Value of Mass(m)=");
scanf("%f",&m);
printf("Enter the Length of Wire(L)=");
scanf("%f",&L);
printf("Increasein Length of Wire(l)=);
scanf("%f",&l);
printf("Enter The Radius of Wire(r)=);
scanf("%f",&r);
y=(m*g*L)/(pi*r*r*l);
printf("The Youngs Modulus is=%.2f",y);
getch();
}
No comments:
Post a Comment
Thank you for visit this site. You will get many programming news from here and learn programming very easily.