#include <stdio.h> int main( void ) { for( unsigned abc=100; abc!=1000; ++abc ) { if( abc*abc%1000 == abc ) printf( "%u * %u = %u\n", abc, abc, abc*abc ); } }