online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#pragma warning(disable:4996) // scanf() 보안 경고 비활성화 #include <stdio.h> // 표준 입출력 함수 #include <math.h> // sin, cos, tan 사용을 위한 헤더 파일 int main(){ // 프로그램 시작, main 함수 정의 double angle, sin_val, cos_val, tan_val; // 실수형 변수 선언: 입력받을 각도, 사인 값, 코사인 값, 탄젠트 값 printf("각도(라디안) 입력: "); scanf("%lf", &angle); // 각도(라디안) 입력 요청 // sin, cos, tan 값 계산 // 입력받은 각도의 사인, 코사인, 탄젠트 값을 // 각각 sin_val, cos_val, tan_val에 저장 sin_val = sin(angle); cos_val = cos(angle); tan_val = tan(angle); printf("sin(%.2lf) = %lf\n", angle, sin_val); // 사인 값 출력 printf("cos(%.2lf) = %lf\n", angle, cos_val); // 코사인 값 출력 printf("tan(%.2lf) = %lf\n", angle, tan_val); // 탄젠트 값 출력 return 0; // 프로그램 종료 }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text
×

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue