C语言题目...编程小题目很简单的! 急救啊!

来源:百度知道 编辑:UC知道 时间:2024/05/25 01:52:18
这两题怎么做....帮帮忙啊 朋友!
1. 编写一个算法和C程序,计算以下等式的结果.
S=X*Y*X/10
2. 编写一个算法和C程序,显示以下结果:
'Finding Nemo'
is a great movie!
I saw it yesterday.

要用curboc程序编辑器来编写!
C++的不行!
急救啊......

题1:
********************************************
#include <stdio.h>
main()
{
int x,y;
int s;
scanf("%d",&x);
scanf("%d",&y);
s = x*y*x/10;
printf("%d",s);
return 0;
}
********************************************

题2:
********************************************
#include <stdio.h>
main()
{
printf("'Finding Nemo'\n");
printf("is a great movie! \n");
printf("I saw it yesterday.\n");
return 0;
}
********************************************