求用户输入得两个数得商,程序运行时,以如下格式输入数据:I n p u t tw o i nt eg e rs:4 2↙请改正程序中得错误,使它能得出正确得结果
#includ e <std i o、h>main(){ int a, b, c; prin t f ( " I np u t two in tegers:"); scanf("%d,%d", &a, &b); c = a\b; p r i n tf("The qu otient o f a and b is :%d", c);}# in clude 〈s tdio
h>i n t ma in (){ﻩin t a,b,c;p rint f ("I n pu t t w o in tegers:");s canf ("%d %d",&a,&b);ﻩc=a/b;print f (”T he q u otient of a a nd b is :%d\n”,c);ﻩr eturn 0;}使 用 c on s t 常 量 定 义 圆 周 率pi=3、14159,编程从键盘输入圆得半径 r,计算并输出圆得周长与面积
输出得数据保留两位小数点
输入格式要求:”%lf" 提示信息:”Inp u t r:”输出格式要求:"p r intf W ITHOUT wid t h or precision sp ec if icatio ns:\n" "cir c umf e re n ce = %f, a r ea = %f\n” "p ri ntf WIT H width a n d pr ec isi on specificati o n s:\n" "c ir cumf e rence = %7、2f, a rea = %7
2f\n”程序运行示例如下:I n put r:5
3printf WITHOUT w idth o r