Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

#include<iostream>

#include<iomanip>

using namespace std;

int main()

int i,j=-889489150,k=-90618175,b,sub=0;

cout<<"Enter number of turns";

cin>>b;

for(i=b;i>=1;i--)

if(i==b)

cout<<setw(12)<<j;

if(i==b-1)

cout<<setw(12)<<k;

sub=j-k;

j=k;

k=sub;

cout<<setw(12)<<sub;

return 0;

You might also like