📝 Added sandbox (code sketchbook)
This commit is contained in:
parent
b475595f7f
commit
b5daf18b1a
142 changed files with 100702 additions and 0 deletions
13
sandbox/sprintf.c
Normal file
13
sandbox/sprintf.c
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
/* https://www.tutorialspoint.com/c_standard_library/c_function_sprintf.htm */
|
||||
|
||||
#include <stdio.h>
|
||||
#include <math.h>
|
||||
|
||||
int main() {
|
||||
char str[80];
|
||||
|
||||
sprintf(str, "Value of Pi = %f", M_PI);
|
||||
puts(str);
|
||||
|
||||
return(0);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue