5
#include <stdio.h> int add(int a,int b) { return a+b; } int minus(int a,int b) { return a-b; } int multip(int a,int b) { return a*b; } int quotient(int a,int b) { return a/b; } int mod(int a,int b) { return a%b; }
int main(void) { int x,y; scanf("%d%d",&x,&y); printf("%d\n", add(x,y)); printf("%d\n", minus(x,y)); printf("%d\n", multip(x,y)); printf("%d\n", quotient(x,y)); printf("%d\n", mod(x,y)); return 0; }
#include <stdio.h> int prime(int n) { int a; for (a = 2; a < n; a += 1) { if(n % a ==0){break;} } if(n==a){return 1;} else{return 0;}
}
int main() { int x; scanf("%d",&x);
if (prime(x)==1) { printf("yes\n"); } else printf("no\n"); return 0; }
#include <stdio.h> int max2(int a,int b) { if (a>=b){return a;} else{return b;} }
int max4(int a,int b,int c,int d) { return max2(max2(a,b),max2(c,d)); }
int main() { int a,b,c,d; scanf("%d%d%d%d",&a,&b,&c,&d); printf("%d",max4(a,b,c,d)); return 0; }