黄迪明3.1

来源:互联网 发布:mac php 版本 编辑:程序博客网 时间:2024/06/06 12:27
/*编写一个程序从终端上输入两个整数,检查第一个数是否能被第二个数整除。*/#include<stdio.h>#include<stdlib.h>int main() {     int a, b;     printf("Please input two number:");     scanf("%d %d", &a, &b);     if (a % b == 0)         printf("can");     else         printf("can't");     system("pause");     return 0; }

这里写图片描述

0 0
原创粉丝点击