fork download
  1. #include <stdio.h>
  2. #include <string.h>
  3. #include <iostream>
  4.  
  5.  
  6. int main()
  7. {
  8. char buff[50];
  9. char format[50] = "%";
  10.  
  11. sprintf(buff, strcat(format, "*.*lf"), 0, 4, 27500.0000);
  12.  
  13. std::cout << buff << std::endl;
  14.  
  15. return 0;
  16. }
  17.  
  18.  
Success #stdin #stdout 0s 3412KB
stdin
Standard input is empty
stdout
27500.0000