Write a program asking Rohit his saving amount and if the saving is greater than 5000 he will create a fixed deposit and if less than 5000 he will create a recurring deposit. Use if/else condition.

Answer

#include<iostream>

using namespace std;

int main()

{

int savings;

cout<<"Enter your saving amountn";

cin>>savings;

if(savings>5000){

cout<<"Create Fixed Depositn";

}

else{

cout<<"Create Recurring Depositn"

}

return 0;

}

All c++ Questions

Ask your interview questions on c

Write Your comment or Questions if you want the answers on c from c Experts
Name* :
Email Id* :
Mob no* :
Question
Or
Comment* :
 





Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---