:c语言函数实习报告

:
>

  int i,c; c=a%b; if(c>0)

  i=0; else i=1; return i; }

  main() {

  int a,b,s;

  printf("please input a and b:\n"); scanf("%d %d",&a,&b); s=mulNum(a,b); if(s==1)

  printf("%d is a multiple of %d\n",a,b); else

  printf("%d is not a multiple of %d\n",a,b); }

  输入数据1和5运行结果如下:

  输入数据5和5运行结果如下:

  输入数据6和2运行结果如下:

>
显示更多

上一篇: ct室实习心得

下一篇: 儿科护士实习心得

最新文章

热门文章

闽ICP备12022453号-17

快读网 轻松阅读 享受快乐生活

网站邮箱:wodd7@hotmail.com