+ 1

How to print "%" in C ???

26th Sep 2021, 6:07 AM
Trung Kiên
Trung Kiên - avatar
3 Respuestas
+ 3
Add one % before it. float half_price = 50.0f; printf( "Discount %.f%%\n", half_price );
26th Sep 2021, 6:15 AM
Ipang
+ 2
puts("%");
26th Sep 2021, 6:15 AM
SAN
SAN - avatar
+ 1
SAN in puts function yiu don't need to write format specifiers u can just pass message whatever you want
26th Sep 2021, 7:28 AM
A S Raghuvanshi
A S Raghuvanshi - avatar