fork download
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. int p,n,i;
  6. char type;
  7. cout<<"enter the principle amount"<<'\n';
  8. cin>>p;
  9. cout<<"enter the number of years"<<'\n';
  10. cin>>n;
  11. cout<<"mention the type of account you want.c for current acount and s for savings account";
  12. cin>>type;
  13.  
  14.  
  15. }
Success #stdin #stdout 0s 5316KB
stdin
Standard input is empty
stdout
enter the principle amount
enter the number of years
mention the type of account you want.c for current acount and s for savings account