-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCodeForces281A.java
More file actions
28 lines (28 loc) · 916 Bytes
/
Copy pathCodeForces281A.java
File metadata and controls
28 lines (28 loc) · 916 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
package codeforces;
import java.util.Scanner;
public class CodeForces281A {
public static void main(String[] shoukhin)
{
String s;
Scanner ob = new Scanner(System.in);
s=ob.nextLine();
char a[] = new char[s.length()];
for (int i = 0; i < a.length; i++) {
a[i] = s.charAt(i);
}
for (int i = 'a'; i <= 'z'; i++) {
if (a[0] == i) {
char c = a[0];
int i1 = (int) c;// Suppose c=98 i1=98 i1=i1-32=66 ati 'B' er ASCII value
i1 = i1 - 32;
a[0] = (char) i1;
} else {
continue;
}
}
for (int i = 0; i < a.length; i++) {
System.out.print(a[i]);
}
System.out.println();
}
}