C语言合理运用break语句以及巧妙运用while语句
代码如下
#include<stdio.h>三种
int main(void){
float length,width;
printf("Enter the length of the rectangle:\n");
while(scanf("%f",&length)==1)
{printf("Length = %0.2f:\n",length);
printf("Enter its width:\n");
if (scanf("%f",...
原创
2022-03-29 14:11:13 ·
1205 阅读 ·
0 评论