daily pastebin goal
21%
SHARE
TWEET

Untitled

a guest Jan 18th, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int n = [number of numbers to print]
  2. int i = 0;
  3.  
  4. int a = 1;
  5. int b = 0;
  6.  
  7. int fnumber = 0;
  8.  
  9. while(foo < n){
  10.  
  11.     b= fnumber;
  12.  
  13.     fnumber = a + b;
  14.  
  15.     for (int j = 1; j <= i; j++){
  16.         printf("%s","*");
  17.     }
  18.     printf("%s","/n");
  19.  
  20.     a = b;
  21.     foo++;
  22.  
  23. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top