正在加载图片...
程序(二)程序功能:计算由键盘输入的任意两个整数的积。 #include <stdio. h> main int x, y,p, scanf(“%,%”,&x,&y) p=prodct(x, y) printf(" The prodct is:%d,p) int prodct(int a, int b) Hint c: c=a*b return C,程序(二) 程序功能:计算由键盘输入的任意两个整数的积。 #include <stdio.h> main() {int x,y,p; scanf(“%d,%d”,&x,&y); p=prodct(x,y); printf(“The prodct is :%d”,p); } int prodct(int a,int b) {int c; c=a*b; return c; }
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有