游客 Signup | Login
中文 | En

2412 - 输出表达式

写一个程序,计算1+2值,并在计算机屏幕上输出计算公式,最后输出一个换行符。

Input

本题无输入。

Output

写一个程序,计算1+2值,并在计算机屏幕上输出计算公式,。

要求输出结果后再输出一个换行符。

Examples

Input

本题无输入样例

Output

1+2=3

Solution C

#include<stdio.h>

int main()
{
	int a,b,c;
	a=1;
	b=2;
	c=a+b;
	printf("%d+%d=%d",a,b,c);
	return 0;
}

Solution C++

#include<stdio.h>

int main()
{
	int a,b,c;
	a=1;
	b=2;
	c=a+b;
	printf("%d+%d=%d",a,b,c);
	return 0;
}
Time Limit 1 second
Memory Limit 128 MB
Discuss Stats
上一题 下一题