Untitled

Anonymous
plain_text
10/04/2023 8:54 PM
428 B
16
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...