C program to caculate the depth of water applied to the crop

                    /*program to caculate the depth of water applied to the crop*/

#include<stdio.h>
void main()
{
int B,D,delta;
clrscr();
printf("OUTPUT OF THE PROGRAM\n");
printf("----------------------------\n");
printf("enter the value of base period (B) in days\n");
scanf("%d",&B);
printf("enter the value of duty (D) in hectares/cumec\n");
scanf("%d",&D);
delta=(864*B)/D;
printf("the value of depth of water applied to the crop=%dcm\n",delta);
getch();
}

               /*OUTPUT*/
Previous
Next Post »