top of page

소스 코드 제출

공개·회원 81명

20250809

/*

'\0' 0 NULL


' ' 32


'0' 48

'1' 49

..


'9'


'A' 65

'B' 66

...

'Z'


'a' 97

'b' 98

...

'z'

*/

/*

#include <stdio.h>

#include <string.h>

int main()

{

char s[50]="hello";

int a = strlen(s); //문자열 길이 구하기


//printf("%s",s);

//for(i=0; i<a ;i++)

for(int i=0; s[i]!=NULL ;i++)

{

if(s[i]=='a')

printf("%d ",s[i]);

}

return 0;

}

*/

/*#include <stdio.h>

#include <string.h>

int main(){

char str[50]=" ";


scanf("%[^\n]s",&str);


printf("%s",str);

}

*/


/**


int arr[50]={};


&arr[0] -> arr


char str[50]="";


&str[0] -> str


&&str[0] -> &str (xxxxxx)



*/

/*

#include <stdio.h>

#include <string.h>


int main()

{


char str[30]= "";

scanf("%s",str);


// for(int i=0; i<5 ;i++)

// {

// printf("str[%d]: %c\n",i,str[i]);

// }


// if(str[4]=='\0')

// {

// printf("I love you.");

// }

if(str=="love") (x)

if(&str[0]=="love") (x)


if(str[0]=='l') (ok)

if(strcmp(str,"love")==0)


}

*/

//#include <stdio.h>

//#include <string.h>


//int main()

//{


//char str[30]= "";

//scanf("%s",str);

//if(strcmp(str,"love")==0){

// printf("I love you.");

//}


//}//

/*#include <stdio.h>

#include <stdio.h>

int main(){

char str[50]="";

scanf("%s",str);


for(int i=0; i<strlen(str); i++){

if(str[i]=='t'){

printf("%d ",i+1);

}

}

}


*/





/*#include <stdio.h>

#include <stdio.h>

int main(){

char ID[50]="";

scanf("%s",ID);



printf("welcome! %s",ID);

}

*/

/*#include <stdio.h>

#include <string.h>

int main()

{

char str[10001]="";

int i;

scanf("%s",str);


for(i=0; str[i]!=NULL; i++)

{

if(str[i]>95)

{

str[i]=str[i]-32;

}

else if(str[i]<91&&str[i]>64)

{

str[i]= str[i]+32;


}

printf("%c",str[i]);

}






}

/*




ddddd*/

/*#include <stdio.h>

#include <string.h>

int main()

{

char str[2000]= "";

int i;

scanf("%[^\n]s",&str);

for(i=0; str[i]!=NULL; i++)

{

if(str[i]!=' ')

{

printf("%c",str[i]);

}

}







}

*/



/*#include <stdio.h>

#include <string.h>

int main()

{

char str[200]="";

int c=0;

int n=0;

scanf("%s",str);


for(int i=0; str[i]!=NULL; i++)

{


if(str[i] =='C'|| str[i]== 'c')

{

c++;

if(str[i+1] =='C' || str[i+1]=='c')

{

n++;

}

}





}

printf("%d\n",c);

printf("%d",n);



}


*/

#include <stdio.h>

#include <string.h>

int main(){

char str[2300]= "";

scanf("%[^\n]s",&str);


for(int i=0; str[i]!=NULL; i++){

if(str[i]==32){

printf("%c",str[i]);

}

str[i]= str[i]-3;

printf("%c",str[i]);




}




}

1회 조회
주소 : 경기도 용인시 광교중앙로 302 블루 스퀘어 602호
연락처 : 031) 216 - 1546 ,     031) 215 - 1546
사업자등록번호 : 465-92-00916
​학원 등록 제 4603호
bottom of page