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 are the different types of qualifier in java?
What is object in oop with example?
Can we create object of abstract class?
What is polymorphism and why is it important?
Get me an image implementation program.
hi, this is raju,iam studying b.tech 2nd year,iam want know about group1 and group2 details, and we can studying without going to any instutions? please help me.
How to handle exception in c++, For example in a functions i am assigning memory to some variables and also in next instructions in am dividing one variable also. If this functions generates a error while allocating memory to those variable and also while dividing the variable if i divide by zero then catch block how it will identify that this error has cone from perticular instruction
What is the real time example of inheritance?
how to get the oracle certification? send me the answer
What is an example of genetic polymorphism?
What is the difference between inheritance and polymorphism?
Why is polymorphism needed?
What language is oop?
What is a class in oop?
what is graphics