#include
#include
void fun (int a, int b ,long *c)
{
}
main ()
{
int a,b;
long c;
clrscr ();
printf (“Input a, b:”);
scanf(“%d%d”, &a, &b);
fun (a, b, &c);
printf (“The result is: %d
”, c);
}
编辑人: 流年絮语
2025-03-06
5
601
#include
#include
void fun (int a, int b ,long *c)
{
}
main ()
{
int a,b;
long c;
clrscr ();
printf (“Input a, b:”);
scanf(“%d%d”, &a, &b);
fun (a, b, &c);
printf (“The result is: %d
”, c);
}
喵呜刷题:让学习像火箭一样快速,快来微信扫码,体验免费刷题服务,开启你的学习加速器!
本文链接:请编写函数fun,其功能是:将两个两位数的正整数a、b合并形成一个整数放在c中。合并的方式是:将a数的十位和个位数依次放在c数的千位和十位上,b数的十位和个位数依次放在c数的百位和个位上。
版权声明:本站点所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明文章出处。