Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  2
Language: C/C++
Code:
#include <stdio.h>

int main() {
    float a,b;
    printf("欢迎使用彭千千满减计算器n");
    printf("请在下面输入封顶金额,彭千千计算器将进行计算n");
    scanf("%f",&a);
    if (a==250)
    {
        printf("你怎么知道我是250啊/呲牙n");
    }
        else
        {
        if(a>=100)
        {
            printf("我彭千发现这个活动没有超过100块的/呲牙n");
        }
        else
        {
        b=a/0.38;
        printf("经彭千千的计算,最多满%f元可减%1.0f元/呲牙n",b,a);
        return 0;
        }
        }
    }

          
Comments: