Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main() {
- int d;
- double n;
- scanf("%lf %d", &n, &d);
- printf("%.*f\n", (int) d, (double) n);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement