반지름입력받기 /원면적구하기
#include int main(void) { const PI = 3.14; float round; printf("반지름입력:"); scanf_s("%f", round,1); printf("%f * %f * PI = %f", round, round, round*round*PI); } #include int main(void) { const double PI = 3.14; double round = 5; printf ("%f * %f * PI = %f", round, round, round*round*PI); return 0; } printf ("%f * %f * PI = %f", &round, &round, &round*round*PI); printf일땐 &안씀. scanf 일때 & 쓰는거 ..
2020. 7. 30.