Quick actions

cmd+k|ctrl+k

Navigation

Languages

Задание №87

Snippet info

Language

Cpp

Visibility

public

Author

diety

Created

2018-10-21T10:25:33Z

Updated

2018-10-21T10:25:33Z

#include <iostream>
#include <cmath>
using namespace std;

int main() 
{
 double a,b,c;
 cout <<"Введите числа a,b,c и нажмите Enter\n";
 cin >> a;
 cin >> b;
 cin >> c;
 
 if ((int)a == a)
 {
 cout << "Число a - целое ";
 }
 if ((int)b == b)
 {
 cout << "Число b - целое ";
 }
 if ((int)c == c)
 {
 cout << "Число c - целое ";
 }
 else
 {
 cout << "Нет целыx чисел"<< endl;
 }
 return 0;
}
INFO