Round up a Decimal number in c++..
example Note = 3.5 is as 4
3.3 is as 3
Answer Posted / pawarp
#include <iostream>
#include <cmath>
int main()
{
float a;
cout<<"Enter any float value to round up"<<endl;
cin>>a;
cout << round(a)<<endl;
return 0;
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Whats is abstraction in oops?
#include
Why is object oriented programming so hard?
What is advantage of inheritance?
What is abstract class in oop?
What is a superclass in oop?
when to use 'mutable' keyword and when to use 'const cast' in c++
How many human genes are polymorphic?
How do you achieve runtime polymorphism?
What is the difference between a mixin and inheritance?
What does I oop mean?
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.
What is the important feature of inheritance?
write a program to find 2^n+1 ?
What does enum stand for?