.
Объяснение:
#include <iostream>
using namespace std;
int main()
{
cout << "Vvedite chislo" << endl;
int a;
cin >> a;
if (a < 20)
a = a * a;
cout << "a < 20, a = " << a << endl;
}
else
a = a % 10;
cout << "a < 20, poslednaya cifra = " << a << endl;
.
Объяснение:
#include <iostream>
using namespace std;
int main()
{
cout << "Vvedite chislo" << endl;
int a;
cin >> a;
if (a < 20)
{
a = a * a;
cout << "a < 20, a = " << a << endl;
}
else
{
a = a % 10;
cout << "a < 20, poslednaya cifra = " << a << endl;
}
}