Question and Answers Forum | ||
Question Number 188879 by Nimnim111118 last updated on 08/Mar/23 | ||
![]() | ||
Commented by mr W last updated on 08/Mar/23 | ||
![]() | ||
Commented by Nimnim111118 last updated on 08/Mar/23 | ||
![]() | ||
Commented by mr W last updated on 09/Mar/23 | ||
![]() | ||
Answered by mr W last updated on 09/Mar/23 | ||
![]() | ||
| ||
Commented by Nimnim111118 last updated on 08/Mar/23 | ||
![]() | ||
Commented by Nimnim111118 last updated on 08/Mar/23 | ||
![]() | ||
Commented by mr W last updated on 09/Mar/23 | ||
![]() | ||
Commented by mr W last updated on 08/Mar/23 | ||
![]() | ||
Answered by mr W last updated on 09/Mar/23 | ||
![]() | ||
| ||
Commented by mr W last updated on 08/Mar/23 | ||
![]() | ||
Commented by ARUNG_Brandon_MBU last updated on 09/Mar/23 | ||
![]() | ||
Commented by ARUNG_Brandon_MBU last updated on 09/Mar/23 | ||
#include <iostream> using namespace std; int main(void) { short count=0; int sum=0; for (short i0, i1, i2, i=102; i<1000; i++) { i0 = i / 100; i1 = i % 100 / 10; i2 = i % 10; if (i0%2==1&&i0!=i1&&i0!=i2&&i1!=i2) { sum += i; count++; } } cout << "There are " << count << "numbers"; cout << "\n their sum is " << sum; return 0; } | ||
Commented by ARUNG_Brandon_MBU last updated on 09/Mar/23 | ||
![]() | ||
Commented by mr W last updated on 09/Mar/23 | ||
![]() | ||
Commented by ARUNG_Brandon_MBU last updated on 09/Mar/23 | ||
You're welcome, Sir ���� | ||