Computer Science, asked by ronanorlando88, 1 month ago

Find 5 errors in the given program and correct it
#include
#include
Void main[]
(
Int p;
float rot:
int t;
float si;
float amt;
cout< >rot;
cout<<”Enter the number of years”;
cin>>t;
si=(p*rot*t)/100;
amt=si+p;
cout<<”\n Simple Interest is “< cout<<”\n Total Amount is “< getch();
}

Answers

Answered by purnapushkalam1991
0

Explanation:

#include<iostream.h>

#include<conio.h>

void main()

{

int p;

float rot:

int t;

float si;

float amt;

cout<<rot;

cout<<”Enter the number of years”;

cin>>t;

cout<<”Enter the princi”;

cin>>p;

cout<<”Enter the rot”;

cin>>rot;

si=(p*rot*t)/100;

amt=si+p;

cout<<”\n Simple Interest is “<<si;

cout<<”\n Total Amount is “<<amt;

getch();

}

Similar questions