标题:菜鸟级求大神看下这段代码有什么问题
取消只看楼主
yue635917957
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2015-11-16
 问题点数:0 回复次数:0 
菜鸟级求大神看下这段代码有什么问题
#include<stdio.h>
main()
{
    float radius,height,vol;
    float volume(float,float);
    printf("Please input the radius and height:\n");
    scanf(%f %f,&radius,&height);
    vol=volume(radius,height);
    prinf("volume=%f\n",vol);
}
float volume(float r,float h)
{
    float temp;
    float pi=3.1415926;
    temp=pi*r*r*h;
    return temp;
}
搜索更多相关主题的帖子: return volume 
2015-11-16 15:46



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-459271-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 1.793192 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved