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
How to improve object oriented design skills?
What are functions in oop?
write a program that takes input in digits and display the result in words from 1 to 1000
What is encapsulation with example?
State what is encapsulation and friend function?
Advantage and disadvantage of routing in telecom sector
What is the difference between abstraction and polymorphism?
Why is polymorphism important in oop?
design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)
What is cohesion in oop?
Can static class have constructor?
What do you mean by abstraction?
What is the highest level of cohesion?
#include
What is overriding in oop?