-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheje2775.java
More file actions
30 lines (30 loc) · 933 Bytes
/
eje2775.java
File metadata and controls
30 lines (30 loc) · 933 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import java.util.Scanner;
public class eje2775
{
public static void main(String [] args){
Scanner lee = new Scanner(System.in);
int x = Integer.parseInt(lee.nextLine());
for(int i=0;i<x;i++){
String c = lee.nextLine();
switch(c.charAt(0)){
case 'a':
System.out.println(c+"cow");
break;
case 'e':
System.out.println(c+"cow");
break;
case 'i':
System.out.println(c+"cow");
break;
case 'o':
System.out.println(c+"cow");
break;
case 'u':
System.out.println(c+"cow");
break;
default:
System.out.println(c.substring(1)+c.charAt(0) +"ow");
}
}
}
}