Open muzak27 opened 2 years ago
//https://www.codechef.com/problems/VOWELTB
int main(){ char c; scanf("%c",&c); if( c == 'A' || c == 'I' || c == 'U' || c == 'E' || c == 'O'){ printf("Vowel\n"); }else{ printf("Consonant\n"); } }
//https://www.codechef.com/problems/AREAPERI
int main(){ int a,b; int luas, keliling; scanf("%d%d",&a,&b); luas = a b; keliling = (a + b) 2; if(luas > keliling){ printf("Area\n%d\n",luas); } else if(keliling > luas){ printf("Peri\n%d\n",keliling); } else { printf("Eq\n%d\n",keliling); } }
//https://www.codechef.com/problems/HOWMANY
int main(){ int n; scanf("%d",&n); if(n<10){ printf("1\n"); }else if (n < 100){ printf("2\n"); }else if (n < 1000){ printf("3\n"); }else { printf("More than 3 digits\n"); } }
//https://www.codechef.com/problems/DIFFSUM
int main(){ int a,b; scanf("%d%d",&a,&b); if(a>b){ printf("%d\n",a-b); }else{ printf("%d\n",a+b); } }
//https://www.codechef.com/problems/START01
include
int main(){ int n; scanf("%d",&n); printf("%d\n",n); }