I Iaminkwo Grasshopper Joined May 6, 2022 Posts 10 Reaction 0 Points 9 May 26, 2022 #1 View attachment 1954409 Last edited: May 26, 2022
F fuzzywubby Forum Guru May 26, 2022 #2 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.
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.