#include <stdio.h>
#include <stdlib.h>
int main () {
int a = 0;
int b = 0;
int c = 0;
system("clear");
printf("欢迎来到iPhone12购买工具\n");
sleep(1);
printf("您想买哪种型号的iPhone12?\n");
printf("tips:输入1是iPhone12mini,2是iPhone12,3是iPhone12pro,4是iPhone12promax\n");
scanf("%d", &a);
printf("要购买iPhone吗?1=yes 2=no\n");
scanf("%d", &b);
if(b == 2) {
printf("再见\n");
return 1;
} else if(b = 1) {
printf("选择付款方式(1=Apple pay,2=支付宝,3=微信,4=其他\n");
scanf("%d", &c);
}
printf("搜索附近的付款账户。。。\n");
sleep(2);
printf("正在付款。。。\n");
sleep(1);
printf("付款成功!您的iPhone将在2000年后到达。\n");
return 0;
}