I am trying to have a user input a number, 5 for example, and then prints a number i have with that many decimal points.
example:
user types: 5
prints: 1.10293
(i chose random numbers here, but has 5 decimal points)
I only know how to do this printf("%.5lf", mynumber);
and that would print 5, but always 5.
i want it to print the amount the user puts in.
thank you for any help or advice