Computer science
Journal
C++
Pooja Pavithran
Xl – A
Roll no.
ACKNOWLEDGEMENTS
THIS JOURNAL IS A COLLECTIVE EFFORT OF ME
AND MY COMPUTER SCIENCE TEACHER
[Link]
OVERWHELMING SUPPORT ENCOURAGED ME TO
PREPARE THIS JOURNAL.
AND I THANK HER
Q1. Write a program to out the simple interest.
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
float p, r, t, SI;
cout<<"Enter the value for principal=" ;
cin>>p;
cout<<"Enter the value for rate of interest=";
cin>>r;
cout<<"Enter the value for time=";
cin>>t;
SI=(p*r*t)/100;
cout<<SI<<" is the simple interest.";
getch();
}
\\\\\\\\\\\\\\\\\\\\\\\\\\\\ OUTPUT \\\\\\\\\\\\\\\\\\\\\\\\
Enter the value for principal
1000
Enter the value for rate of interest
10
Enter the value for time
5
500 is the simple interest