21天好习惯第一期-7

博弈问题之Best Response

代码如下:

#include<stdio.h>
int main()
{
    float a,b;float compete,standard;
    printf("Input percent of A and B:");
    scanf("%f%f",&a,&b);
    compete = a*10+b*6;
    standard = a*8+b*10;
    printf("compete = %.4f\nstandard = %.4f\n",compete,standard);
    if(compete>=standard) 
    printf("The Best Response is compete!");
    else
    printf("The Best Response is standard!");
    return 0;
}

21天好习惯第一期-7

21天好习惯第一期-7 

 

上一篇:Failed to load or instantiate TagLibraryValidator class: org.apache.taglibs.standard.tlv.JstlCoreTLV


下一篇:查看有无安装某软件Linux