/*program to find max.BM and SF of point load*/
#include<stdio.h>
void main()
{
float w,a,b,l,v,m;
clrscr();
printf("enter the value of load in kn:\n");
scanf("%f",&w);
printf("enter the value of span in m :\n");
scanf("%f",&a);
printf("enter the value the total span in m:\n");
scanf("%f",&b);
printf("enter the length of m:\n");
scanf("%f",&l);
m=(w*a)/l;
if(a<b)
v=(w*b)/l;
else
v=(w*b)/l;
printf("maximum SF=%f kn.m and maximum BM=%f m respectively",v,m);
getch();
}
/*OUTPUT*/
#include<stdio.h>
void main()
{
float w,a,b,l,v,m;
clrscr();
printf("enter the value of load in kn:\n");
scanf("%f",&w);
printf("enter the value of span in m :\n");
scanf("%f",&a);
printf("enter the value the total span in m:\n");
scanf("%f",&b);
printf("enter the length of m:\n");
scanf("%f",&l);
m=(w*a)/l;
if(a<b)
v=(w*b)/l;
else
v=(w*b)/l;
printf("maximum SF=%f kn.m and maximum BM=%f m respectively",v,m);
getch();
}
/*OUTPUT*/
Sign up here with your email
ConversionConversion EmoticonEmoticon