码迷,mamicode.com
首页 > 其他好文 > 详细

求两个整数的乘积

时间:2019-10-17 01:18:40      阅读:95      评论:0      收藏:0      [点我收藏+]

标签:turn   oid   nbsp   scanf   include   amp   ret   return   int   

// 求两个整数的乘积
#include<stdio.h>
int product (int,int);
int main(void)
{
 int x,y,s;
 scanf("%d %d",&x,&y);
 s = product(x,y);
 printf("The mul is:%d",s);
 return 0;
}
int product(int a,int b)
{
 int mul;
 mul = a*b;
 return mul;
}

求两个整数的乘积

标签:turn   oid   nbsp   scanf   include   amp   ret   return   int   

原文地址:https://www.cnblogs.com/wyxnb/p/11689366.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!