We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
use double to declare data type as double a ,b,c;
while scaning scanf("%lf",&a);
while printing printf("%0.lf",a); // 0.lf restricts the decimal point to zeroth position which is an integer
Fibonacci Modified
You are viewing a single comment's thread. Return to all comments →
use double to declare data type as double a ,b,c; while scaning scanf("%lf",&a); while printing printf("%0.lf",a); // 0.lf restricts the decimal point to zeroth position which is an integer