SUM.CPP
资源名称:C++100.rar [点击查看]
上传用户:wszmarenbt
上传日期:2013-04-26
资源大小:2552k
文件大小:0k
源码类别:
Windows编程
开发平台:
Visual C++
- #include <stdio.h>
- #include <conio.h>
- inline int GETSUM(int NUM1,int NUM2)
- {
- int SUM;
- SUM=NUM1+NUM2;
- return SUM;
- }
- int main(void)
- {
- int NUMBER1,NUMBER2,SUM;
- printf("nPlease input three integer : ");
- scanf("%d",&NUMBER1);
- printf("nPlease input another integer:");
- scanf("%d",&NUMBER2);
- SUM=GETSUM(NUMBER1,NUMBER2);
- printf("nThe SUM integer is %d .",SUM);
- getch();
- return 0;
- }