Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <math.h>
- int main() {
- float a = 1, i = 1;
- while (i <= 15)
- {
- int st = (pow(a, 3));
- if (a == ((st % 10) - a))
- {
- printf("%d\t", a);
- a++;
- i++;
- }
- else
- {
- i++;
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment