时间:2021-07-01 10:21:17 帮助过:22人阅读
和前面几个差不多,都是一样的道理
C++代码
#include<cstdio> 
int main()
{ 
int x,y; 
scanf("%d%d",&x,&y); 
float c=(float)x/y; 
printf("%d %.2f",x%y,c);//商保留两位小数
}
DBSDFZOJ-----1004-----语法百题-----两个数的余数和商
标签:-- sso 个数 ons scanf 题目 pre int col