current position:Home>Write a program to find the number of integers between 200 and 300 that meet the following conditions. Condition: the product of hundreds, tens and individuals is equal to the sum of hundreds, tens and individuals

Write a program to find the number of integers between 200 and 300 that meet the following conditions. Condition: the product of hundreds, tens and individuals is equal to the sum of hundreds, tens and individuals

2022-02-03 00:28:20 CSDN Q & A

Write a program , Find out 200—300 The number of integers that meet the following conditions .
Conditions : Hundred bit 、 ten 、 The product of one bit equals one hundred 、 Sum of ten and one




Refer to the answer 1:

For reference :

#include <stdio.h>int main(){    int a, b, c, i;    for (i = 200; i <= 300; i++)    {        a = i / 100;        b = i / 10 % 10;        c = i % 10;        if ((a * b * c) == (a + b + c))            printf("%d ", i);    }    return 0;}



Refer to the answer 2:

copyright notice
author[CSDN Q & A],Please bring the original link to reprint, thank you.
https://en.primo.wiki/2022/02/202202030028187086.html

Random recommended