Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main()
- {
- int initialNumber, finalNumber;
- printf("enter first chislo: \n");
- scanf("%d", &initialNumber);
- printf("enter last chislo: \n");
- scanf("%d", &finalNumber);
- for (int num = initialNumber; num <= finalNumber; num++)
- {
- if (((num % 1000 / 100 ) + (num % 10000 / 1000 )) == ((num % 10) * (num % 100 / 10)))
- {
- printf("chislo: %d \n", num);
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement