#include
void main(void)
{
int a,b,c,d;
printf("Enter the first number: ");
scanf("%d",&a); //%d是整數,%f是允許小數點 &a存取
printf("Enter the second number: ");
scanf("%d",&b);
printf("Enter the third number: ");
scanf("%d",&c);
d=a+b+c;
printf("Total=%d",d); //=後面出現的是d //%d代表的是輸入整數
_getch(); //停留於這個畫面
}
沒有留言:
張貼留言