I am trying to print a number up to say 5 decimal places.

I have:

```
#include <iostream>
#include <cstdio>
using namespace std;

int main() {
    float a = 987.65;
    float b = 1.23456789;
    scanf("%f %f", &a, &b);
    printf("%.5f %.5f", a, b);
    return 0;
}

```

I get the result as 987.65000 and 1.23456 
I want the result to be 987.65 and 1.23456, so basically I want up to 5 i.e <=5 decimal digits in my answer.