Untitled
unknown
plain_text
2 years ago
320 B
9
Indexable
#include <iostream>
using namespace std;
int main() {
setlocale(0, "");
double n_floa;
int n_int;
int weloe;
double fract;
cin >> n_floa;
n_int = (int)n_floa;
weloe = n_int;
fract = n_floa - n_int;
cout << "целая часть - " << weloe << "," << "дробная - " << fract;
}
Editor is loading...