Skip to content

Instantly share code, notes, and snippets.

View dev-GOHU's full-sized avatar

GOHU dev-GOHU

  • 한서대학교 항공컴퓨터전공
  • Republic of Korea
  • X @dev_gohu
View GitHub Profile
@dev-GOHU
dev-GOHU / uni_C - chap 3-1.c
Last active December 27, 2022 13:49
교재 C언어 Express(3판) 3장 Programming 과제
#include<stdio.h>
int main(void){
double num1,num2,num3=0.0;
printf("실수를 입력하시오: ");
scanf("%lf", &num1);
printf("실수를 입력하시오: ");
scanf("%lf", &num2);
@dev-GOHU
dev-GOHU / uni_C - chap 4-1.c
Last active December 27, 2022 13:49
교재 C언어 Express(3판) 4장 Programming 과제
#include<stdio.h>
int main(void){
float num;
printf("실수를 입력하시오: ");
scanf("%f", &num);
printf("실수형식으로는 %f입니다\n", num);
printf("지수형식으로는 %e입니다\n", num);
@dev-GOHU
dev-GOHU / uni_C - chap 5-1.c
Last active December 27, 2022 13:50
교재 C언어 Express(3판) 5장 Programming 과제
#include<stdio.h>
int main(void){
int num1 = 0, num2 = 0;
printf("2개의 정수를 입력하시오: ");
scanf("%d %d", &num1, &num2);
printf("몫: %d 나머지: %d", num1/num2, num1%num2);
@dev-GOHU
dev-GOHU / uni_C - chap 9-1.c
Last active December 27, 2022 13:50
교재 C언어 Express(3판) 9장 Programming 과제
#include<stdio.h>
void cntPlus(){
static int count = 0;
printf("덧셈은 총 %d번 실행되었습니다.\n", ++count);
}
void cntMius(){
static int count = 0;
printf("뺄셈은 총 %d번 실행되었습니다.\n", ++count);
}
void cntMul(){
@dev-GOHU
dev-GOHU / uni_C - chap 12-1.c
Last active December 27, 2022 13:50
교재 C언어 Express(3판) 12장 Programming 과제
#include<stdio.h>
int main(void){
char c = 0;
printf("문자를 입력하시오: ");
scanf("%c", &c);
printf("아스키 코드값=%d", c);
return 0;
}
@dev-GOHU
dev-GOHU / uni_C - finalTest 1.c
Last active December 27, 2022 13:40
C언어 기말고사 문제입니다.
#include<stdio.h>
int main(void){
char c;
while(c!='q' && c!='Q'){
printf("문자를 입력하시오: ");
scanf("%c", &c);
getchar();
if(c=='r'||c=='R'){
printf("Rectangle\n");
@dev-GOHU
dev-GOHU / uni_Python - chap 5-4.py
Last active December 27, 2022 13:48
교재 파이썬 for beginner(3판) 5장 연습문제 과제입니다.
score=int(input("점수를 입력하세요: "))
if score>=90:
print("장학생", end=' ')
elif score>=60:
print("합격", end=' ')
else:
print("불합격", end=' ')
print("입니다. ^^")
@dev-GOHU
dev-GOHU / uni_Python - chap 6-8.py
Created December 27, 2022 13:48
교재 파이썬 for beginner(3판) 6장 연습문제 과제입니다.
n = 1234
sum = 0
while n<4568:
if n%444==0:
sum+=n
n+=1
print(sum)
@dev-GOHU
dev-GOHU / uni_Python - chap 8-10.py
Created December 27, 2022 13:55
교재 파이썬 for beginner(3판) 8장 연습문제 과제입니다.
ss = "IT_CookBook"
'#'.join(ss)
@dev-GOHU
dev-GOHU / uni_Python - week11 project 2-1.py
Created December 27, 2022 14:00
수업 파이썬프로그래밍 11주차 과제
def func(x):
print(x)
pass
func(5)