sirbi

Untitled

Dec 5th, 2019
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.24 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <math.h>
  3. int main() {
  4.     float a = 1, i = 1;
  5.     while (i <= 15)
  6.     {
  7.         int st = (pow(a, 3));
  8.         if (a == ((st % 10) - a))
  9.         {
  10.             printf("%d\t", a);
  11.             a++;
  12.             i++;
  13.         }
  14.         else
  15.         {
  16.             i++;
  17.         }
  18.     }
  19.     return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment