[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 240
  • Last Modified:

printing the % sign?

Hello,
I just want to know how to print the % as a text?
Thanks
0
Carl3003
Asked:
Carl3003
1 Solution
 
Jaime OlivaresCommented:
if you are using printf:

printf("Here is the percentage sign: %%");

if not:

puts("Here is the percentage sign: %");
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now