标签:std int pre style scanf span printf ice lse
#include<stdio.h> int main() { int n; scanf("%d", &n); double price; if (n*95<300) { price = n * 95; printf("%.2f\n", price); } else { price = n * 95 * 0.85; printf("%.2f\n", price); } return 0; }
打折
标签:std int pre style scanf span printf ice lse
原文地址:https://www.cnblogs.com/zhuzehua/p/9783203.html