/*rgb값 입력해서 10진수로 변환하는 프로그램*/
#include <stdio.h>
/*
작성자: 나경문
작성날짜: 2026년 3월 19일
작성목적: 퀴즈 과제 제출
*/
int main() {
printf("*****************\n");
printf("202606017 나경문\n");
printf("*****************\n");
int r, g, b;
scanf("%x %x %x", &r, &g, &b);
printf("--------------------------\n");
printf(" r: %d\n", r);
printf(" g: %d\n", g);
printf(" b: %d\n", b);
printf("--------------------------\n");
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: