K

@kimjuha19

파이썬 기초(문자 띄어쓰기)

Python
8 months ago
s = input() print((s + " ") * 2 + s)

파이썬 기초(세수 평균)

Python
8 months ago
a = int(input()) b = int(input()) c = int(input()) num = a + b + c print(num / 3)

파이썬 기초(두수 차)

Python
8 months ago
num1 = int(input()) num2 = int(input()) print(num1 - num2)

파이썬 기초(+10)

Python
8 months ago
num = int(input()) print(num + 10)

파이썬 기초(반올림)

Python
8 months ago
num = float(input()) upnum = round(num,1) print(upnum)

파이썬 기초(문자 여러번 출력)

Python
8 months ago
word = input() multiply = word * 3 print(multiply)

파이썬 기초(이름나이)

Python
8 months ago
name = input() age = input() print("이름:",name,"나이:",age)

파이썬 기초(첫,마지막 글자)

Python
8 months ago
string = input() fchar = string[0] lchar = string[-1] print(fchar,lchar)

파이썬 기초 (제곱 출력)

Python
8 months ago
a = int(input()) b = int(input()) c = int(input()) print(a * a) print(b * b) print(c * c)

파이썬 기초 (문자열 길이)

Python
8 months ago
word = input() print(len(word))

파이썬 기초(세숫자 평균 소수 2째)

Python
8 months ago
a = int(input()) b = int(input()) c = int(input()) num = a + b + c print("{0:.2f}".format(num))

파이썬 기초(두수 곱)

Python
8 months ago
num1 = int(input()) num2 = int(input()) print(num1 * num2)

파이썬 기초(두수 합)

Python
8 months ago
num1 = int(input()) num2 = int(input()) print(num1 + num2)

파이썬 기초 (이름 입출력)

Python
8 months ago
name = input() print("안녕하세요,",name,"님!")

학생 성적 상속

C++
8 months ago
#include <iostream> #include <string> using namespace std; struct Person { string name; int age; }; struct Student : public Person {

은행 계좌

C++
8 months ago
#include <iostream> #include <string> using namespace std; class Account { protected: string accountNumber; double balance; public:

도서 관리

C++
8 months ago
#include <iostream> #include <string> using namespace std; struct Book { string title; string author; int price; };

TV와 리모컨

C++
8 months ago
#include <iostream> using namespace std; class TV { protected: int channel; int volume; public: TV() {

상속과 계산기

C++
8 months ago
#include <iostream> #include <string> using namespace std; class Calculator { public: double add(double a,double b){ return a + b; } double sub(double a,double b){

학생 평균 총합

C++
8 months ago
#include <iostream> #include <string> using namespace std; struct Student { string name; int score; }; void averagetotal(Student s[], int size) {