#include "stdio.h"
int max(int x,int y);void main(){ int a[4],i; for(i=0;i<4;i++) { scanf("%d",&a[i]); } i=0; printf("%d\n",max(max(a[i],a[i+1]),max(a[i+2],a[i+3]))); }int max(int x,int y){ return x>y?x:y;}
#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;}void main(){ 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));}
#include "stdio.h"
int prime(int x);void main(){ int x; scanf("%d",&x); if(prime(x)==1) printf("YES\n"); else printf("NO\n");}int prime(int x){ int y,a; for(y=2;y<x;y++) { if(x%y==0) { a=0; break; } } if(x==y) { a=1; } return a;}
#include "stdio.h" int fac(int n); void main() { int n; scanf("%d",&n); printf("%d\n",fac(n)); } int fac(int n) { if(n==1||n==0) { return 1; } else if(n>0) { return n*fac(n-1); } else { return 0; }
}