hey guys can some body help me with this program coz when compile it theirs to many errors or can apply printf statement to it
Code:
#include<iostream>
#iinclude<iomanip.h>
#include<math.h>
int main ()
{
double amount,
       principal=1000.0,
       rate=0.5
        

        cout<<"year"<<setw(21)
        <<"Amount on deposit""<<end1;
        for(int year<=10;year++){
                amount=principal*pow(1.0+rate'year);
                cout<<setw(4)<<year
                <<setiosflags(ios::fixed/ios:showpoint)
                <<setw(21)<<setprecission(2)
                <<amount<<end1;
                }
                return 0;
                }