#54502: C語言的解析與解說


ya.chen.wu981002@gmail.com (吳亞宸)


#include <stdio.h>
#include <stdlib.h>
 
 
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
 
int main(int argc, char *argv[]) 
{
int a , b;
 
scanf("%d %d",&a,&b);
 
 
printf("%d\n",a+b);
 
system("PAUSE");
return 0;
}
-------------------------------解釋------------------------------------
%d → 整數(int)
scanf("%d %d",&a,&b); 時 , 兩個&d間不可有逗號
a+b的時候前面不可加&