Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main (){
- string num;
- float amount;
- char response = 'Y';
- while (response=='y' || response=='Y') {
- system("clear");
- cout << "Loading Station \n";
- cout << "--------------------------- \n";
- cout << "Mobile Number: ";
- cin >> num;
- cout << "Enter Amount: ";
- cin >> amount;
- cout << "--------------------------- \n";
- cout << amount << ".00" << " Successfully Loaded on " << num << ". \n";
- cout << "--------------------------- \n";
- cout << "Load Again [Y/N]: ";
- cin >> response;
- }
- if (response=='N' || response=='n') {
- system("clear");
- cout << "Loading Station \n";
- cout << "--------------------------- \n";
- cout << "Transaction Terminated! \n\n";
- cout << "--------------------------- \n";
- cout << "Thank you! Load pa more... \n\n";
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement