/*
#include <stdio.h>
#include <string.h>
int main()
{
int i,n,a=0;
char str[101]={};
gets(str);
for(i=0 ; str[i]!=NULL ; i++)
{
if(str[i]=='l' && str[i+1]=='o' && str[i+2]=='v' && str[i+3]=='e')
{
a++;
}
}
printf("%d", a);
return 0;
}
*/
/*
str[i] -- 'c' or 'C'
str[i+1] -- 'c' or 'C'
#include <stdio.h>
#include <string.h>
int main()
{
int i, n=0,j,m=0;
char str[101]={};
scanf("%s", str);
for(i=0; str[i]!=NULL ; i++)
{
if(str[i]=='c' || str[i]=='C')
{
m++;
if(str[i+1]=='c' || str[i+1]=='C')
{
n++;
}
}
}
printf("%d\n", m);
printf("%d", n);
return 0;
}
*/
/*
#include <stdio.h>
#include <string.h>
int main()
{
char str [10]={};
scanf("%s", str);
printf("welcome! %s", str);
}
*/
/*
#include <stdio.h>
#include <string.h>
int main()
{
int i;
char str [20]={};
scanf("%s", str);
for(i=0 ; str[i]!=NULL ; i++)
{
if(str[i]=='l' && str[i+1]=='o' && str[i+2]=='v' && str[i+3]=='e' && str[i+4] != '1' && str[i-1] != '1')
{
printf("I %s you.", str);
}
}
return 0;
}
#include <stdio.h>
#include <string.h>
int main()
{
int i;
char str [30]={};
scanf("%s", str);
for(i=0 ; str[i]!=NULL ; i++)
{
printf("'%c'\n", str[i]);
}
return 0;
}
#include <stdio.h>
#include <string.h>
int main()
{
int i, n;
char str [101]={};
gets(str);
n = strlen(str);
for(i=n-1; i>=0; i--)
{
printf("%c", str[i]);
}
return 0;
}
************꼭 기억하기!!******
문자 'a' str[i] %c
문자열 "Hello" str %s
*****************************
아스키코드 : 각 문자마다 고유 번호
'a' 97
'b' 98
'c' 99
...
'z' 122
'A' 65
'B' 66
...
'Z' 90
'0' 48
'1' 49
'2' 50
...
'9'
'10' (x)
' ' 32
NULL 0
#include <stdio.h>
#include <string.h>
int main()
{
printf("%c",'t'-32);
if(str[i]=='t')
if(str[i]==116)
}
*/
/*
#include <stdio.h>
#include <string.h>
int main()
{
int i,j;
char str [21]={};
scanf("%s", str);
for(i=0 ; str[i]!=NULL ; i++)
{
printf("%c", str[i]+2);
}
printf("\n");
for(j=0 ; str[j]!=NULL ; j++)
{
printf("%c", str[j]*7%80+48);
}
}
*/



