酷代码 AI
菜单
服务商
DeepSeek字节豆包讯飞星火
更多选项

C语言:帮小A将十两秤体重换算成十六两秤上报进城!

```c #include <stdio.h> int main() { int ten_jin, ten_liang; scanf("%d", &ten_jin); scanf("%d", &ten_liang); int total_ten = ten_jin * 10 + ten_liang; int sixteen_jin = total_ten * 16 / 10; int sixteen_liang = total_ten * 16 % 10; printf("%d\n", sixteen_jin); printf("%d\n", sixteen_liang); return 0; } ``` ######[AI写代码神器 | 135点数解答 | 2024-10-31 21:43:52]

相关提问
本站限时免费提问中
实用工具查看更多
Linux在线手册 [开发类]
Jquery在线手册 [开发类]
今日油价 [生活类]
图片互转base64 [开发类]
时间转换器 [开发类]