I am having a bit problem with this simple code.
I have tried different type castings, but I have not got any issue in here. If anybody tell me the reason that why its always printing 0.0000000 or something like that, I will be regretful and thanks in advance.
#include<stdio.h>
main()
{
double num1,num5;
printf ("Hello user\n");
printf ("Let the thickness of black and white brick are same and the value
is 2m\nAnd the gap between them is 1m\n");
printf ("\nEnter the length of the road:\n");
scanf ("%lf",&num1);
num5 = ((2/5)*num1);
printf ("%lf",num5);
return 0;
}