EEEC-LaptrinhC-BTVN_2



Comments


  • 0
    181500678  commented on July 4, 2019, 2:56 p.m.

    include <stdio.h>

    include <stdlib.h>

    include <math.h>

    int main(){ int n,s,i=0; scanf("%d",&n); s=sqrt(n);

    if(n<2){
        printf("NO");
    }
    else if(n==2 || n==3){
        printf("YES");
    }
    else{
        for(i=2;i<s+1;i++){
            if(n%i==0){
                break;
            }
        }
        if(i==s+1){
        printf("YES");
    }
    else printf("NO");
    }

    }


  • 0
    anh_181403150  commented on July 4, 2019, 5:21 a.m.

    include <stdio.h>

    int main() { float a,b,c,d; scanf("%.2d",&a); if(0.00<=a<=400.00) b=(a15%)+a c=a15% d=15% printf("%.2d Luong \n%.2d Tiet kiem duoc \n%.2d Ty le phan tram",b,c,d); if(400.01<=a<=800.00) b=(a12%)+a c=a12% d=12% printf("%.2d Luong \n%.2d Tiet kiem duoc \n%.2d Ty le phan tram",b,c,d);