0

how can I print 19.5

c++
20th Jul 2016, 2:16 PM
Umair JR
Umair JR - avatar
3 Answers
+ 3
cout <<"19.5";
20th Jul 2016, 2:30 PM
Mukul Kumar
Mukul Kumar - avatar
+ 1
or double x = 19.5; cout << x; you have saved your number in a variable now
20th Jul 2016, 3:30 PM
Peter Müller
Peter Müller - avatar
0
thanx
20th Jul 2016, 2:32 PM
Umair JR
Umair JR - avatar

Often have questions like this?

Learn more efficiently, for free:

  • Introduction to Python

    7.1M learners

  • Introduction to Java

    4.7M learners

  • Introduction to C

    1.5M learners

  • Introduction to HTML

    7.5M learners

See all courses
Hot today
Pattern printing (c, c++, java , python)
2 Votes
Webpage
0 Votes
I am a novice programmer, please tell me whether it would be in vain to study assembly language for a better understanding of th
0 Votes
Program to calculate vowel in file
2 Votes
Please help me!
0 Votes
Why is my password validation code not WORKING!?
1 Votes
Background colour changes
0 Votes
Is my code a good solution for the Zip Code Validator Code-Coach?
0 Votes
What language are used for making games like free fire?
0 Votes
How can I generate this 1 million digits of pi with any modules or libraries
0 Votes
Follow us on Linkedin
Check out our facebook
See what we tweet about
Join our instagram
Watch our Youtube
HomeProFAQContactBug Bounty ProgramCareersTerms of UsePrivacy PolicySololearn Mobile
Made with
by  Sololearn | ©2023