Variable Statistics (3) 썸네일형 리스트형 [C언어 콘서트] Chapter 4 Programming 1번 #include int main() { int x; int y; int quotient, remainder; printf("첫 번째 정수를 입력하시오: "); scanf("%d", &x); printf("두 번째 정수를 입력하시오: "); scanf("%d", &y); quotient = x / y; remainder = x % y; printf("몫은 %d이고 나머지는 %d입니다.", quotient, remainder); return 0; } 2번 #include int main() { int x; int cube; printf("첫 번째 정수를 입력하시오: "); scanf("%d", &x); cube = x * x * x; printf("세제곱값은 %d*%d*%d = %d입니다.", x,x,.. [C언어 콘서트] Chapter 3 Programming 1번 #include int main() { float x; printf("실수를 입력하시오: "); scanf("%f", &x); printf("지수 형식으로는 %e입니다.", x); return 0; } 2번 #include int main() { char c; printf("문자를 입력하시오: "); scanf("%c", &c); printf("아스키 코드: %d", c); return 0; } 3번 *개정판 문제가 이상합니다. 다항식의 값을 계산하는 프로그램이라고 되어있는데 그에 해당하는 다항식은 주어져있지 않고 x의 값과 다항식의 값만 나와있어서 풀 수 없음 ! 4번 #include int main(void) { double square_metor; //제곱미터를 저장하는 변수 double ar.. [C언어 콘서트] Chapter 2 Programming 1번 #include int main(){ printf("이름: 홍길동\n"); printf("주소: 서울시 종로구\n"); printf("전화번호: 111-2222\n"); return 0; } 2번 #include int main(){ int price; price=22000; printf("제품의 가격은 %d원 입니다\n.", price); return 0; } 3번 #include int main(){ int x,y,z; int avg; printf("정수를 입력하시오: "); scanf("%d",&x); printf("정수를 입력하시오: "); scanf("%d",&y); printf("정수를 입력하시오: "); scanf("%d",&z); avg = (x + y + z)/3; printf("평.. 이전 1 다음