Solução: Problema do quadrado gêmeo das partes (Marco Antônio)
From AdonaiMedrado.Pro.Br
Revision as of 12:40, 1 April 2009 by 200.17.147.2 (Talk)
#include <stdio.h> #include <stdlib.h> int main(){ int entry, num1, num2, krapekar,i; scanf("%d",&entry); for(i=10;i<=entry;i = i*10){ num1 = entry/i; num2 = entry%i; krapekar = num1 + num2; if (krapekar*krapekar == entry){ return 1; } } return 0; }