Untitled

mail@pastecode.io avatar
unknown
c_cpp
6 months ago
220 B
0
Indexable
Never
#include <iostream>
using namespace std;

int main() {
  setlocale(LC_ALL,"Russian");
  double n;
  cin >> n;
  int m = n;
  cout << "Целая часть - " << m << ", дробная часть - " << n - (double)m;
}