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
Where You Can Use Interface in your Project
assume the program must insert 4 elements from the key board and then do the following programs.sequential search(search one of the elements),using insertion sort(sort the element) and using selection sort(sort the element).
Prepare me a program for the animation of train
What is polymorphism explain?
Why do we use oops?
What are the three parts of a simple empty class?
What are the advantages of polymorphism?
What is polymorphism what are the different types of polymorphism?
Why multiple inheritance is not allowed?
What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?
What is polymorphism and why is it important?
What is multilevel inheritance in oop?
What is encapsulation in simple terms?
What is the main purpose of inheritance law?
Please send ford technologies placement paper 2 my mail id