摘要: --打印九九乘法表declare @str nvarchar(100),@i int,@j intset @i=1while(@i<=9) begin set @j=1 set @str='' while(@j<=@i) begin set @str=@str+convert(nvarchar(5),@i)+'*'+convert(nvarchar(5),@j)+'='+convert(nvarchar(5),@i*@j)+' ' set @j=@j+1 end print @str set @i=@i+1 end 阅读全文
posted @ 2014-01-15 17:05 守望者107 阅读(364) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace Calendar{ class Program { static void Main(string[] args) { int year=0,month=0; bool isInt = true; Console.ForegroundColor = ConsoleColor.Red; do { Console.WriteLine("请输入年份:"); isInt = int.TryParse( 阅读全文
posted @ 2013-11-04 22:17 守望者107 阅读(209) 评论(0) 推荐(0)