Solved

printing the % sign?

Posted on 2004-09-19
1
210 Views
Last Modified: 2012-05-05
Hello,
I just want to know how to print the % as a text?
Thanks
0
Comment
Question by:Carl3003
1 Comment
 
LVL 55

Accepted Solution

by:
Jaime Olivares earned 30 total points
ID: 12099060
if you are using printf:

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

if not:

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

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

An Outlet in Cocoa is a persistent reference to a GUI control; it connects a property (a variable) to a control.  For example, it is common to create an Outlet for the text field GUI control and change the text that appears in this field via that Ou…
Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode (http://en.wikipedia.org/wiki/Unicode)? They will have you believe that Unicode requires you to use…
The goal of this video is to provide viewers with basic examples to understand and use structures in the C programming language.
The goal of this video is to provide viewers with basic examples to understand opening and writing to files in the C programming language.

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question