1096:零起点学算法03——超简单模仿算术题

1096: 零起点学算法03——超简单模仿算术题

Time Limit: 1 Sec  Memory Limit: 128 MB   64bit IO Format: %lld
Submitted: 3082  Accepted: 2275
[Submit][Status][Web Board]

Description

计算机计算能力很强哦。 
让计算机帮你算其实也很容易,不过要学好计算机语言哦。 
下面请看一个例子:要求计算机计算1+2的值并输出。 
这个程序非常简单,请看下面蓝色字体的就是程序代码: 

#include <stdio.h>
int main()
{
printf("%d\n",1+2);
return 0;
}

 

Input

没有输入

 

Output

输出10-7的值

 

Sample Output

3

 

Source

 
 1 #include <stdio.h> 
 2   
 3 int main() 
 4 { 
 5       
 6 printf("%d\n",10-7); 
 7   
 8 return 0; 
 9   
10 } 

 

posted @ 2017-04-06 22:43  Dollis  阅读(405)  评论(0编辑  收藏  举报