Question 85: Programming to find the three digits that meet the following conditions: the hundred digit plus the single digit equals the tens digit, and the number is divisible by 5 and 7.
#include<stdio.h>
int main()
{ int i,j,k; int num; for(num=100;num<1000;num++) { i=num/100; j=(num-i*100) /10; k=num%10; if(i+k
j&&num%50&&num%7==0)
printf("%d ",num);
}
}