I need to produce code that will print a table that shows the value of Pi by n (n from 1 to 10. I need to use a "for" loop. Can anyone assist?
HELP!
I need to produce code that will print a table that shows the value of Pi by n (n from 1 to 10. I need to use a "for" loop. Can anyone assist?
HELP!
That should be small and simple.Code:for(int i=1; i<10; i++) { cout << "Pi by " << i << " = " << (i*3.14) << "\n"; }
-Mike
{InFeStEd-ArCh0n}