Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <math.h>
- int main()
- {
- int number;
- printf("Entre com um numero de quatro digitos :\n"); scanf("%d",&number);
- if (pow(number/100 + (number%1000)%100,2) == number)
- {
- printf("Numero possui as caracteristicas desejadas!\n");
- }
- else printf("Numero nao possui as caracteristicas desejadas!");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment