Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<stdlib.h>
- #include<math.h>
- main()
- {
- float n = 0, m = 0, t = 0;
- printf("numero da raiz");
- scanf("%f", &n);
- If(n > 0)
- while (m<n);
- {
- m = (m + 1);
- if (m % 2 != 0)
- t = (t + 1);
- }
- n = sqrt(n);
- if (n == t)
- printf("perf");
- else
- printf("impf");
- }
Advertisement
Add Comment
Please, Sign In to add comment