C++ Language
 
Notifications
Clear all

C++ Language

6 Posts
1 Users
0 Likes
106 Views
Posts: 10
Admin
Topic starter
(@suha)
Member
Joined: 2 years ago

Here we will discuss c++ language and will know more about this topic

5 Replies
Posts: 10
Admin
Topic starter
(@suha)
Member
Joined: 2 years ago

Write program to input principal, rate and time and find its simple interest in c++. [Interest=(Principal*Rate*Time)/100]

Reply
Posts: 10
Admin
Topic starter
(@suha)
Member
Joined: 2 years ago

#include<iostream.h>

#include<conio.h>

void main()

{

clrscr();

int p,r,t,i;

cout << "Calculate the Simple Interest "<<endl;

cout << " -----------------------------------"<<endl;

cout<<" Input the Principle: ";

cin>>p;

cout<<" Input the Rate of Interest: ";

cin>>r;

cout<<" Input the Time: ";

cin>>t;

i=(p*r*t)/100;

cout<<" The Simple interest for the amount "<<p<<" for "<<t<<" years @ "<<r<<" % is: "<<i;

cout << endl;

getch();

}

Reply
Posts: 10
Admin
Topic starter
(@suha)
Member
Joined: 2 years ago

Write a program to input a three digit number and reverse it in Turbo C++

Reply
Posts: 10
Admin
Topic starter
(@suha)
Member
Joined: 2 years ago

Write a program to input a three digit number and reverse it in Turbo C++

Reply
Page 1 / 2
Share: