C program to calculate dry density of soil


                           /*program to calculate dry density of soil*/
#include<stdio.h>
void main()
{
float dry_density ,wd,v;
clrscr();
printf("OUTPUT OF PROGRAM\n");
printf("-----------------\n");
printf("enter the value of weight of dry soil in kg:\n");
scanf("%f",&wd);
printf("enter the value of volume of soil in cubic metere:\n");
scanf("%f",&v);
dry_density=wd/v;
printf("dry density of soil=%f kg/cubic metre",dry_density);
getch();
}

                       /*OUTPUT*/
 
Previous
Next Post »