上一页 1 ··· 28 29 30 31 32 33 34 35 36 ··· 40 下一页
摘要: --循环create or replace procedure p_xunhuan(input in number,output out number) is temp number(10);begin temp := 0; for temp in 0..input loop begin output := input+temp; dbms_output.put_line('----'||output); end; end loop;... 阅读全文
posted @ 2014-02-10 15:31 艺言弈行 阅读(510) 评论(0) 推荐(0) 编辑
摘要: create or replace procedure test_score(input in number,output out char) isbegin if input>=90 then begin output := 'A'; end; end if; if input<90 then begin output := 'B'; end; end if; if input<80 then begin ... 阅读全文
posted @ 2014-02-10 15:19 艺言弈行 阅读(1633) 评论(0) 推荐(0) 编辑
摘要: package com.yangzl.basic;/** * 九九乘法表 * @author Administrator * */public class Nine_Nine_Multiplication_Table { public static void main(String[] args) { for (int i = 1; i <= 9; i++) { for(int j=1;j<=9;j++){ System.out.print(j+"*"+i+"="+j*i+" "); if(i... 阅读全文
posted @ 2014-01-22 14:56 艺言弈行 阅读(579) 评论(0) 推荐(0) 编辑
摘要: package com.yangzl.basic;import java.util.Scanner;/** * 分别统计出其中汉字、英文字母、空格、数字和其它字符的个数 * @author Administrator * */public class Count_Input_Str_Num { public static void main(String[] args) { System.out.print("输入字符:"); Scanner s = new Scanner(System.in); String str = s.nextLine(... 阅读全文
posted @ 2014-01-22 10:29 艺言弈行 阅读(1034) 评论(0) 推荐(1) 编辑
摘要: 1 package com.yangzl.basic; 2 /** 3 * 题目:打印出所有的"水仙花数". 4 * 所谓"水仙花数"是指一个三位数, 5 * 其各位数字立方和等于该数本身。 6 * 例如:153是一个"水仙花数",因为153=1的三次方+5的三次方+3的三次方。 7 * 8 * @author Administrator 9 *10 */11 /*程序分析:利用for循环控制100-999个数,每个数分解出个位,十位,百位。*/12 public class ShuiXianHua {13 public static 阅读全文
posted @ 2014-01-21 15:23 艺言弈行 阅读(1219) 评论(0) 推荐(0) 编辑
上一页 1 ··· 28 29 30 31 32 33 34 35 36 ··· 40 下一页