473,399 Members | 3,656 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

how can display the % symbol to the screen in c

what is the output for the following
Expand|Select|Wrap|Line Numbers
  1. x=2;
  2. y=5;
  3. z=x+++y;
  4. printf("%d %d %d",x,y,z);
  5.  
Dec 13 '10 #1
1 1747
donbock
2,426 Expert 2GB
What do you hope to accomplish with
Expand|Select|Wrap|Line Numbers
  1. z=x+++y;
Also, the printf output depends on the types of x,y,z. so you should tell us that.

Do you also wish to know how to display the "%" character (as indicated in the title of your post)?
Dec 13 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: arvind | last post by:
hi, How do I display a number in binary or octagonal ? eg. int a= 195; //1100 0011 int b = 87; //0101 0111 int c = a&b;//0100 0011 => bitwise and printf("%0x", c); // Here I get the...
1
by: VM | last post by:
Can I modify the Display Properties->ScreenSaver tab values from within a Windows C# application? During setup of my screensaver, I'd like to be able to configure this tab (specifically, Screen...
0
by: Shaby | last post by:
Hi I'm designing a new application to display a Dynamic Information Bar at the bottom of Monitor While other applications are running as usual. This can be understood easliy by seeing any News...
5
by: Martin Moser | last post by:
Does somebody knows, if theres a way to display any file (tiff, doc, pdf, .....) "inline" on an asp.net site? What I want to do is, to display a file, which is stored in the DB, and some...
1
by: LeAnne | last post by:
Does anyone know how i could display a MS Outlook screen which can be used for the user to select a contact. I need a screen to display the outlook contacts and for the user to select one of them...
5
by: hayworth | last post by:
How do I get the color depth of the screen/display adapter with vb.net 2003? Background: We're having transparency problems (long side story and known Windows "bug") that requires our systems to...
1
by: leovega | last post by:
Hello, My aplication starts with a simple login window (login_page.aspx). Once the login/password is validated I redirect to an html which contains 3 frames. (mywebsite.html) The web site I...
5
by: steve | last post by:
Hi All I have a form set as the splash screen in VB.net 2005 application properties How can I tell when it has or is closing, as I want to then run some licence checking code without the...
8
by: nickyeng | last post by:
I have written 3 files, i dont know whether i do it correctly or wrongly but somehow it compiled well and can run. My simple aim is to display the terrain.txt file into the terrain array, and then...
6
by: owz | last post by:
I am trying 2 load details about cars from a.txt file and then display the total stock value off all cars. public class Car { // attributes private String manufacturer; private...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.