Á¦°¡ ÀÛ¼ºÇÑ Äڵ带 È®ÀÎÇØ º¸½Ã°í ¹«¾ùÀÌ À߸øµÈ°ÇÁö ¾Ë·Á ÁÖ½Ã¸é °¨»çÇÏ°Ú½À´Ï´Ù.
#include <stdio.h>
int main() {
int a, b;
double c;
char ch1;
do{
printf("¹Øº¯ÀÇ ±æÀÌ = ");
scanf("%d", &a);
printf("³ôÀÌ = ");
scanf(" %d", &b);
c=(double)(a*b)/2;
printf("ÀÔ·ÂÇÑ »ï°¢ÇüÀÇ ³ÐÀÌ´Â %.1fÀÔ´Ï´Ù.", c);
printf("\n°è¼ÓÇϽðڽÀ´Ï±î?");
scanf(" %c", &ch1);
} while(ch1=='Y'||ch1=='y');
return 0;
}