17-10-10 作业

题目一 计算两个班的人数

#include <stdio.h>
int main()
{
    printf("一二班总人数为:%d\n",54+52);
    return 0;
}

题目二:取余运算

#include <stdio.h>
int main()
{
    printf("多出人数为:%d\n",54%4);
    return 0;
}

题目三:求差值

#include <stdio.h>
int main()
{
    printf("一班比二班多的人数为:%d\n",54-52);
    return 0;
}

题目四:输入操作

#include <stdio.h>
int main()
{
    int oneclass=0;
    int twoclass=0;
    printf("本专业人数为:%d\n",oneclass+twoclass);
    return 0;
}
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 题目一:计算两个班的人数 题目二:取余运算 题目三:求差值 题目四:输入操作
    花城丶阅读 1,170评论 0 0
  • 题目一:计算两个班的人数 题目二:取余运算 题目三:求差值 题目四:输入操作
    天然纯净水阅读 1,657评论 0 0
  • Marriage is a great institution,but I'm not ready for an ...
    South_Lin阅读 4,314评论 8 23
  • 周晨(大发化纤有限公司) 276期,感谢1组成员 【日精进打卡第37天】 【知~学习】 《六项精进》读1遍 共73...
    周晨i阅读 1,293评论 0 0
  • 好像十几年来都不擅长怎么去安慰一个人,不知道怎么让一个人知道你就在那里不会离他很远。有时候距离也不是最让人无望的东...
    张心小新阅读 1,033评论 0 0