/*#include <stdio.h>
int main(void)
{
char fruit[20];
int cnt;
printf("좋아하는 과일:");
scanf("%s", fruit);
printf("몇 개:");
scanf("%d", &cnt);
printf("%s를 %d개 드립니다.", fruit, cnt);
return 0;
}*/
/*#include <stdio.h>
int main(void)
{
char ch;
printf("문자 입력: ");
scanf("%c", &ch);
printf("%c문자의 아스키 코드 값은 %d입니다.", ch, ch);
return 0;
}*/
#include <stdio.h>
int main(void)
{
char ch1;
char ch2;
printf("알파벳 소문자 하나를 입력하세요: ");
scanf("%c", &ch1);
ch2 = ch1 + 1;
printf("'%c'의 다음 문자는 '%c'이고, 아스키 코드는 %d입니다.", ch1, ch2, ch2);
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: