/*
#include<stdio.h>
int arr[51][51]={};
int f(int a, int b)
{
if(a==1||b==1)
{
return 1;
}
else if(arr[a][b]!=0)
{
return arr[a][b];
}
else
{
return arr[a][b]=(f(a-1,b)+f(a,b-1))%100000000;
}
}
int main ()
{
int r, c;
scanf("%d %d", &r, &c);
printf("%d", f(r, c));
}
*/
/*
#include<stdio.h>
int f(int z, int x)
{
if(z==x)
{
return 0;
}
if(z>x)
{
return 1+f(z/2,x);
}
else
{
return 1+f(z,x/2);
}
}
int main ()
{
int a, b;
scanf("%d %d", &a, &b);
printf("%d", f(a, b));
}
c언어 문법 -> 자료구조 -> unity(c#)
c언어문법 ( 포인터(2문제) , 구조체( 1 ~ 2 회) 남음)
구조체 struct : 사용자 정의 자료형
내가 만드는 자료형
학생 100명의 나이(정수)와 등급(A,B,C,D,F)을 관리
int age[100];
char grade[100];
배열 (array)
문자열(string) : 문자 일차원 배열
int arr[10]={5,7,4,1,2};
arr[0] 5
arr[1] 7
arr[2] 4
...
char str[100]={'h','e','l',,, }; (x)
char str[6]="hello";
arr[0] 'h'
arr[1] 'e'
arr[2] 'l'
arr[3] 'l'
arr[4] 'o'
arr[5] NULL
*/
/*
#include <stdio.h>
#include <string.h>
int main()
{
//char str[100] = "hello";
char str[100]={};
int i;
scanf("%s",str);
// 문자열출력방법1(통째로)
//printf("%s",str);
// 문자열 출력 방법 2 (문자 하나씩)
for(i=0 ; str[i]!=NULL ; i++)
{
if(str[i]=='h')
{
}
printf("%c-",str[i]);
}
//printf("%c %c %c",str[0],str[1],str[2]);
}
*/
/**
문자 vs 문자열
'a' "apple"
%c %s
str[i] str
1. str=='t' (x)
2. scanf("%c",str); (x)
3. scanf("%s",&str[1]); (x)
4. char str[50]='t'; (x)
*/
/*
#include<stdio.h>
int main ()
{
char a;
scanf("%c", &a);
printf("%c", a);
return 0;
}
*/
/*
#include<stdio.h>
#include<string.h>
int main ()
{
char s[9];
scanf("%s", &s);
printf("%s", s);
return 0;
}
*/
/*
#include<stdio.h>
#include<string.h>
int main ()
{
char s[16];
scanf("%s", &s);
if(s[0]=='l'&&s[1]=='o'&&s[2]=='v'&&s[3]=='e'&&s[4]=='\0')
{
printf("I love you.");
}
return 0;
}
&s[0] -> s
*/
/*
#include<stdio.h>
#include<string.h>
int main ()
{
char s[11]="";
scanf("%s", s);
for(int i=0 ; s[i]!=NULL ; i++)
{
if(s[i]=='t')
{
printf("%d ", i+1);
}
}
return 0;
}
*/
/*
#include<stdio.h>
#include<string.h>
int main ()
{
char s[11]="";
scanf("%s", s);
printf("welcome! %s", s);
return 0;
}
아스키코드 : 모든 문자는 고유의 코드넘버가있다!!
'\0' 0 NULL
' ' 32
'A' 65
'B' 66
'C' 67
...
'Z'
'a' 97
'b' 98
'c' 99
...
'z'
*/
/**
#include <stdio.h>
int main()
{
// char str[50]="hello";
// if ('a'<= str[0] && str[0] <= 'z') 너 소문자니?
// printf("%c",'A'+32);
char str[50]={};
//scanf("%s",str);
gets(str);
printf("%s",str);
return 0;
}
*/
/*
#include<stdio.h>
#include<string.h>
int main ()
{
char s[21];
scanf("%s", s);
for(int i=0 ; s[i]!=NULL ; i++)
{
printf("'%c'\n", s[i]);
}
return 0;
}
*/
/*
#include<stdio.h>
#include<string.h>
int main ()
{
char s[31];
gets(s);
printf("%s", s);
return 0;
}
*/
/*
#include<stdio.h>
#include<string.h>
int main ()
{
char s[1001];
scanf("%s", s);
for(int i=0 ; s[i]!=NULL ; i++)
{
if('a'<= s[i]&& s[i]<= 'z')
{
printf("%c",s[i]-32);
}
else if('A'<= s[i]&& s[i]<='Z')
{
printf("%c", s[i]+32);
}
else
{
printf("%c", s[i]);
}
}
return 0;
}
*/
#include<stdio.h>
#include<string.h>
int main ()
{
char s[101];
}



