I basically have the whole thing written, and it works perfectly, but my professor is asking us to have six values per row, and my values are being outputted into one column. Is there anyone who can help with that?
#include <iostream>
#include <iomanip>
usingnamespace std;
int main()
{
cout <<"This program gives the user the desired amount of Fibonacci numbers \n";
int x, y, a = 0, b = 1, next;
cout << "Please enter the number of Fibonacci terms you want: ";
cin >> x;
cout << "The first " << x << " terms of the series are: ";
for (y = 0; y < x; y++)
{
if ( y <=1 )
next = y;
else
{
next = a + b;
a = b;
b = next;
}
cout << next;
}
return 0;
}