91学习

陪伴你每一天!

根据输入数字确定图形面的形状

#include <stdio.h>


int main(){

int num;

printf("please enter a num:");

scanf("%d",&num);

if(num==1){

printf("its main view is triangle\n");

}else if(num==2){

printf("the top view of the cone is circular\n");

}else if(num==3){

printf("the left view of the cone is triangle\n");

}

return 0;

}

POSji18790284560.png

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。