ahh yes how dum of me...0 % 5 is zero lol....yup the first one does it...thanx fo the help
Type: Posts; User: chocha7
ahh yes how dum of me...0 % 5 is zero lol....yup the first one does it...thanx fo the help
yes it does but the first 1 is on top n then the other 1 starts off the output correctly
ok here is what i got :
for (int i = 0; i < 30; i++)
{
cout << setw(10) << fib[i];
if ( i % 5 == 0)
cout << endl;
}
cout << endl;
That's exactly what i was thinking....but n e suggestions on where to start?
HI i need help writing my output statement for fibonacci sequence so far i have how to get the sequence and i must output all array elements with 5 elements per line and in a field width of 10....can...
ok so now that i got that...how bout the function to output the body of a calendar. something like?
So if i did:
int calcDay(int month, int year)
{
int day=1;
for(y=1900;y< year; y++)
{
if (isLeap(year))
day = day + 366;
else
...
HI i just started learning C++ in the past month. I need help on writing a functino to calculate the first day of the month from the input year. I have no idea where to start, this counter-controlled...