标签:习题 set sql style arch 半径 gif log nbsp
--1. 求半径2米,高3米的圆柱体体积。
declare @high float
declare @r float
declare @pai float
declare @v float
set @high=3
set @r=2
set @pai=3.14
set @v=@r*@r*@pai*@high
print ‘体积为‘+convert(varchar(20),@v)+‘立方米‘
declear @hight float,@r float,@ratio float ,@ v float set @hight=3 set @r=2 set @ratio =3.14 set @v=@hight*@r*@r*@ratio print ‘体积为‘+convert(varchar(20),@v)+‘立方米‘
标签:习题 set sql style arch 半径 gif log nbsp
原文地址:http://www.cnblogs.com/cxh1995/p/7096081.html