Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main() {
- char str[20];
- double x = 10.123456, y = 1.2345;
- sprintf(str, "%lf, %lf", x, y);
- printf("%s\n", str);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement