Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
My billing system
//g++ 7.4.0 #include <iostream> using namespace std; int main() { int number ; cout << "press 1 to buy airtime \n" ; cout << "press 2 to send airtime \n" ; cout << "press 3 to buy data \n" ; cout << "press 4 to send data \n" ; cout << "press 5 to make a call \n" ; cout << "press 6 to check your balance \n" ; cin >> number ; switch( number ) { case 1: int amount ; cout << "Enter amount \n" ; cin >> amount ; cout << "Purchase of"<<amount<<"naira credit was successful \n" ; break ; case 2: int bNum ; int ammom ; cout << "Enter recipient number and amount \n" ; cin >> bNum ; cin >> ammom ; cout << "Transaction successful \n" ; break ; case 3: int ammm ; cout << "Enter amount \n" ; cin >> ammm ; cout << "Purchase of" << ammm << "naira data was successful \n" ; break ; case 4: int sNum, ammo ; cout << "Enter recipient number and amount \n" ; cin >> sNum ; cin >> ammo ; cout << "Transaction successful \n" ; break ; case 5: int numm ; cout << "Enter number \n" ; cin >> numm ; cout << "calling......... \n" ; break ; case 6: cout << "Your balance is #500 \n" ; break ; } }
run
|
edit
|
history
|
help
1
TREAP RANGE QUERY (but it's runtime is not that good)
Problem D
DoubleListInt
Continuous Sub Set with given sum
Minimum number of jumps DP
MovConstrAssign4
OTHER - Two robots
read_write_lock_acc
scuba
Test 5(2020)