import java.io.*;
class morst
{
public static void main(String[] args) throws IOException
{
BufferedReader bfr= new BufferedReader(new InputStreamReader(System.in));
String input,toUpper,mod="";
int index,check;
char chk;
input=bfr.readLine();
toUpper=input.toUpperCase();
for(index=0;index<toUpper.length();index++)
{
//chk character
chk=toUpper.charAt(index);
//check integer
check=(int)chk;
if(check==65){mod=mod+".-";}
if(check==66){mod=mod+"-...";}
System.out.print(check+" "+chk);
}
System.out.print("Output : "+mod);
}
}
สมัครสมาชิก:
ส่งความคิดเห็น (Atom)
SQL script delete all table of database
SELECT 'TRUNCATE TABLE ' + quotename(S.name) + '.' + quotename(T.name) + char(13) + char(10) + ' ' + char(13) + ch...
-
วิธีแก้ 1. ไปที่ Control Panel 2. ที่มุมขวาบน เลือก View by : category 3. ที่หัวข้อ Programs เลือก Uninstall a program 4. ที่แถบซ้าย...
-
หลักการประมวลผลไฟล์ การเขียนโปรแกรมในภาษาซี เพื่อประมวลผลกับไฟล์ หมายถึงการเขียนคำสั่งเพื่ออ่านข้อมูลจากไฟล์ หรือเขียนข้อมูลลงไฟล์นั้...
-
Ex. 1 การคูณ .model small .stack 100h .data X equ 3 Y equ 3 Z equ 2 .code ;X+Y-2Z+1 Main pro...
ไม่มีความคิดเห็น:
แสดงความคิดเห็น