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

Trending Topics

Online now

Members online
1,227
Guests online
2,326
Total visitors
3,553

Forum statistics

Threads
2,319,131
Posts
29,198,979
Members
1,180,210
Latest member
googlegvv
Back
Top