🔒 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
  • 472
    Views
  • 2
    Participants
Last reply from:
Iaminkwo

Online now

Members online
1,001
Guests online
774
Total visitors
1,775

Forum statistics

Threads
2,275,582
Posts
28,964,240
Members
1,231,872
Latest member
yannahhh
Back
Top