🔒 Closed Pa help po pls

Status
Not open for further replies.
C++:
#include <cmath>
#include <iostream>

using namespace std;

int main() {
    float a = 0;
    
    cout << "Input a number with decimal point: ";
    cin >> a;
    
    cout <<"Rounding it off to whole number: " <<round(a); 

    return 0;
}

Check mo kung tama.
 
Status
Not open for further replies.

About this Thread

  • 2
    Replies
  • 483
    Views
  • 2
    Participants
Last reply from:
Iaminkwo

Trending Topics

Online now

Members online
999
Guests online
3,464
Total visitors
4,463

Forum statistics

Threads
2,299,264
Posts
29,128,888
Members
1,201,891
Latest member
championdigong
Back
Top