C - Input and Output
You want to print a floating-point number
pi with 2 decimal places using printf. Which code is correct?pi with 2 decimal places using printf. Which code is correct?%.2f in printf.%.2f correctly. printf("%2f", pi); misses the dot, C has wrong syntax, D passes extra argument incorrectly.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions