printf()
From Hack Wars Wiki
| Information for free function printf() | |
| Function | printf(string s, args...) |
| API | Attacking, Banking, Challenge, FTP, Watch, HTTP |
| Description | Returns the given string with the values of the variables provided in args appended onto it. Uses %s as the format string for all types |
Example
This is a Challenge example.
string s = printf("%s² is %s %s",getPI(), "smaller than" ,10); setOutputString(s); |
String Outputted: 3.1415927² is smaller than 10
