热门

最新

红包

立Flag

投票

同城

我的

发布
m0_63199069
Agilas
4 年前
truem0_63199069

保留小数
#include <stdio.h>
int main() {
float a=8.22;
float b=3.11;
float c=a/b;
printf("%.2f\n",c);

return 0;
}

CSDN App 扫码分享
分享
评论
点赞
打赏
  • 复制链接
  • 举报
下一条:
四则运算 int main() { int a,b; a=8; b=7; int c=a+b; int d=a-b; int e=a*b; int f=a/b; printf("%d\n",a); printf("%d\n",b); printf("%d\n",c); printf("%d\n",d); return 0;
立即登录