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

Trending Topics

Online now

Members online
1,076
Guests online
4,653
Total visitors
5,729

Forum statistics

Threads
2,348,761
Posts
29,358,769
Members
1,092,701
Latest member
SerKillka
Back
Top