제가 열악한 환경에서 공부중이라
직접 프로그램을 실행시켜보고 공부할 수 있는 상황이 아니라 맞은지 틀린지를 몰라
매일 프밍갤에 글을 올리게 됩니다 ..
형님들 죄송합니다 매번 감사합니다.. 혹시 도움 주시는 형님들 중에 영어 번역하기가 귀찮으신 형님들 계시면
제가 한국어로 타이핑해서 올리겠습니다 ㅠ_ㅠ..
1. Write a program that converts time in minutes to time in hours and minutes. Use
#define or const to create a symbolic constant for 60. Use a while loop to allow the
user to enter values repeatedly and terminate the loop if a value for the time of 0 or less
is entered.
2.Write a program that asks for an integer and then prints all the integers from (and
including) that value up to (and including) a value larger by 10. (That is, if the input is 5,
the output runs from 5 to 15.) Be sure to separate each output value by a space or tab or
newline.
=> 저는 이걸 아무리 생각해도 떠오르지않아서 변수2개를 잡고 한번더 입력받아서 while문을 작성했는데
이게 아닌 것 같은데 number
4. Write a program that asks the user to enter a height in centimeters and then displays the
height in centimeters and in feet and inches. Fractional centimeters and inches should
be allowed, and the program should allow the user to continue entering heights until a
nonpositive value is entered. A sample run should look like this:
Enter a height in centimeters: 182
182.0 cm = 5 feet, 11.7 inches
Enter a height in centimeters (<=0 to quit): 168.7
168.0 cm = 5 feet, 6.4
inches
Enter a height in centimeters (<=0 to quit): 0
bye
5. Change the program addemup.c ( Listing 5.13 ), which found the sum of the first 20
integers. (If you prefer, you can think of addemup.c as a program that calculates how
much money you get in 20 days if you receive $1 the first day, $2 the second day, $3 the
third day, and so on.) Modify the program so that you can tell it interactively how far
the calculation should proceed. That is, replace the 20 with a variable that is read in.
- #include
- int main(void) {
- int count = 0, sum = 0, day;
- while(count++ < day )
- {
- sum = sum + count;
- }
- return 0;
- }
- #include
- int main(void) {
- int count = 0, sum = 0, day, pay;
- while (count++ < day)
- {
- sum = sum + pay * pay;
- pay++;
- }
- return 0;
- }
7. Write a program that requests a type double number and prints the value of the number
cubed. Use a function of your own design to cube the value and print it. The main()
program should pass the entered value to this function.
- #include
- void triple(float);
- int main(void) {
- float number;
- triple(number);
- return 0;
- }
- void triple(float) {
- }



실행이 안되는 환경?
https://www.tutorialspoint.com/compile_c_online.php
웹 되면 여기서 실행시켜
실행이란건 음... 제가 직접 입력하고 출력을 받아볼 환경이 안되는거요 .. 문법적으로 틀렸는지 웹 컴파일러는 ideone.com에서 써보고있습니다 걸어주신 링크는 직접 입력이 가능한건간요 ?
stdin탭 띄우면 입력 됨
언제까지 일을 하셨습니까?n 이거밖에 안뜨는데 왜그러죠 ??.. 소스만 입력이 가능하단건가요 ?? 아니면 변수에 제가 수를 입력 가능하다는건가요 ??