2018-12-27

Hyeonu_Chun·2021년 6월 21일
0

HW1

#include <stdio.h>

void printAge(int);
void printHeight(double);

int main() 
{
	char name[20] = "전현우";
	int age = 23;
	double height = 176.5;

	printf("성명 = %s\n", name);
	printAge(age);
	printHeight(height);

	return 0;
}

void printAge(int n)
{
	printf("나이 = %d\n", n);
}

void printHeight(double n)
{
	printf("키 = %lf\n", n);
}
profile
Stay hungry, stay foolish

0개의 댓글