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
What is the difference between a mixin and inheritance?
write knight tour problem which is present in datastructure
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.
What are the 5 oop principles?
What exactly is polymorphism?
What is the oops and benefits of oops programming?
What is cohesion in oop?
How do you achieve polymorphism?
What is a class oop?
What does and I oop and sksksk mean?
What is purpose of inheritance?
What are the benefits of polymorphism?
What is the main feature of oop?
Explain the concepts involved in Object Oriented programming.
Which is better struts or spring?