//1
#include <iostream>
using namespace std;
signed main() {
int N, pr = 1;
cin >> N;
N = abs(N);
if ((N % 10 * (N / 10) % 10 * N / 100) > 10 and (N % 10 * (N / 10) % 10 * N / 100) < 100)
cout << "YES";
else
cout << "NO";
return 0;
}
//2
#include <iostream>
using namespace std;
signed main() {
setlocale(LC_ALL, "Rus");
int N;
cin >> N;
N = abs(N);
while (N > 0) {
if ((N % 10) % 2 == 0)
cout << N % 10 << " - четное\n";
else
cout << N % 10 << " - нечетное\n";
N /= 10;
}
return 0;
}
//3
#include <iostream>
using namespace std;
signed main() {
setlocale(LC_ALL, "Rus");
int a, b;
cin >> a >> b;
if (a % b == 0)
cout << "Число " << a << " делится без остатка на число " << b;
else
cout << "Число " << a << " не делится без остатка на число " << b;
return 0;
}
using System;
namespace Global
{
class Program
{
public string[] range = new string[2];
static void Main(string[] argv)
{
Program Obj = new Program();
Obj.Calculate();
}
public void Calculate()
{
string iN = Console.ReadLine();
int n = Convert.ToInt16(iN);
Console.WriteLine("Введите диапазон (2 числа через пробел)");
range = (Console.ReadLine().Split(' '));
int s = 0;
int b = getArrayItem(1);
for (int a = getArrayItem(0); a<b+1; a++)
{
if (n % a == 0)
{
s++;
}
}
Console.WriteLine(s);
Console.ReadKey();
}
public int getArrayItem(int item)
{
return Convert.ToInt16(range[item]);
}
}
}
Объяснение: