#include <iostream>
using namespace std;
int main() {
int pay, price,bala;
printf("write down your item price");
scanf("%d",&price);
printf("how many that you pay");
scanf("%d",&pay);
while (pay < price){
bala = price - pay;
printf("you still need to pay %d",bala);
price = price - pay;
scanf("%d", &pay);
}
printf("%d is the total price, %d is the cash that u pay, %d is the cash that u get.",price,pay,pay-price);
return 0;
}