#include
main() { flout a,b,c; char op; printf("Please put into a(+-*/)b"); scanf("%f%c%f",&a,&op,&b); switch(op) { case '+': c=a+b; printf("The sum is: %f",c); case '-': c=a-b; printf("The end is: %f",c); case '*': c=a*b; printf("The end is: %f",c); case '/': c=a/b; printf("The end is: %f",c); dauflt: printf("error!!!"); } return; }
computer
最新推荐文章于 2024-06-12 16:54:15 发布