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

Trending Topics

Online now

Members online
479
Guests online
2,129
Total visitors
2,608

Forum statistics

Threads
2,331,976
Posts
29,261,536
Members
1,147,960
Latest member
juantwotwodecimal8
Back
Top