#include <iostream>
using namespace std;
int main()
{
int a, b, c, d;
for (int i = 10; i < 100; i++)
a = i / 10;
b = i % 10;
c = a * b;
d = c * 3;
if (d == i)
cout << i << endl;
}
return 0;
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
#include <iostream>
using namespace std;
int main()
{
int a, b, c, d;
for (int i = 10; i < 100; i++)
{
a = i / 10;
b = i % 10;
c = a * b;
d = c * 3;
if (d == i)
{
cout << i << endl;
}
}
return 0;
}