1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | #include <stdio.h> int main( void ) { char voca1[100]= "My height" ; char voca2[100]= "170" ; char voca3[100]= "My weight" ; char voca4[100]= "68.600000" ; int i; for (i=0; voca1[i]!= '\0' ; i++){ printf ( "%c" , voca1[i]); } printf ( "\n" ); for (i=0; voca2[i]!= '\0' ; i++){ printf ( "%c" , voca2[i]); } printf ( "\n" ); for (i=0; voca3[i]!= '\0' ; i++){ printf ( "%c" , voca3[i]); } printf ( "\n" ); for (i=0; voca4[i]!= '\0' ; i++){ printf ( "%c" , voca4[i]); } printf ( "\n" ); return 0; } |
2018.01.06 10:55
정올 기초다지기 출력 자가진단6
조회 수 186 추천 수 0 댓글 0