游客 Signup | Login
中文 | En

1459 - 《C语言程序设计》江宝钏主编-习题1-5-求乘积

仿照例1-3程序,编写程序:输入两个整数,输出两数之积、

Input

两个整数a b

Output

a*b

Examples

Input

2 3

Output

6

Solution C

int main(int argc, char* argv[])
{
	int a,b;
	while(~scanf("%d%d",&a,&b))
	{
	  printf("%d\n",a*b);
	}
	return 0;
}

Solution C++

#include<cstdio>
int main()
{
int a,b;
scanf("%d%d",&a,&b);
printf("%d",a*b);
}
Time Limit 1 second
Memory Limit 128 MB
Discuss Stats
上一题 下一题