Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
320 B
1
Indexable
Never
#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;
	
}