您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

最小公倍数

2024/5/31 18:24:45发布15次查看
求两个整数的最小公倍数 无 declare @num1 bigint, @num2 bigint set @num1=6 set @num2=8declare @result bigint declare @max int declare @times int if @num1 = @num2 set @max=@num2 else set @max=@num1 set @times=@max while( @times = @max ) begin
求两个整数的最小公倍数 declare @num1 bigint, @num2 bigint set @num1=6 set @num2=8declare @result bigint declare @max int declare @times int if @num1 = @max ) begin if( @times%@num1 = 0 and @times%@num2 = 0 ) begin set @result=@times break end set @times=@times + 1 end select @result
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product