Advertisement
renix1

Untitled

May 4th, 2017
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.25 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main (void) {
  4.     int number = 0;
  5.     int fixo = 1;
  6.  
  7.     printf("Type the number: ");
  8.     scanf("%d", &number);
  9.     while (fixo < number) {
  10.         fixo = fixo * (1+fixo);
  11.     }
  12.     printf("%d\n", fixo);
  13.     return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement