網頁

2015年10月24日 星期六

ex4.資料結構複習(程式部份)

需要練習的Java程式:

作業1.加權平均
作業2.費氏數列
作業3.課表矩陣
遞迴練習:
GCD
階乘n!

完成費氏數列

67 則留言:

  1. B10333070 徐承瑋2015年10月27日 下午5:16


    public class hw1 {
    public static void main(String[] args) {

    int n=21;
    int [] f=new int[n];
    f[0]=f[1]=1;
    for(int i=2;i"+f[i]);
    }
    }
    }

    回覆刪除
  2. B10333086 陳晏堂2015年10月27日 下午5:21

    package hw;

    public class www {

    public static void main(String[] args)
    {
    int n=21;
    int [] f=new int[n];
    f[0]=f[1]=1;
    for(int i=2; i"+f[i]);
    }
    }
    }

    回覆刪除
  3. B10333083,周琬芸2015年10月27日 下午5:21

    package HW1;

    public class P1
    {
    public static void main(String[] args)
    {
    int n=21;
    int [] f=new int[n];
    f[0]=f[1]=1;
    for(int i=2;i"+f[i]);
    }
    }
    }

    回覆刪除
  4. public class ff {

    public static void main(String[] args) {
    int n=21;
    int [] f=new int[n];
    f[0]=f[1]=1;
    for(int i=2;i"+f[i]);
    }

    }

    }

    回覆刪除

  5. public class ff {

    public static void main(String[] args) {
    int n=21;
    int [] f=new int[n];
    f[0]=f[1]=1;
    for(int i=2; i"+f[i]);
    }

    }

    }

    回覆刪除
  6. package zxcv;

    public class asdf {

    public static void main(String[] args) {
    int n=21;
    int[] f=new int[n];
    f[0]=f[1]=1;
    for(int i=2;i"+f[i]);
    }
    }
    }

    回覆刪除
  7. package p1;

    public class hw1 {

    public static void main(String[] args) {
    int n=21;
    int []f=new int [n];
    f[0]=f[1]=1;
    for(int i=2; i"+f[i]);
    }

    }

    }

    回覆刪除
  8. B10333107-曾詠浩-10272015年10月27日 下午5:22

    package b10333107;

    public class ff {

    public static void main(String[] args) {
    int n=21;
    int [] f=new int [n];
    f[0]=f[1]=1;
    for(int i=2;i"+f[i]);
    }
    }
    }

    回覆刪除
  9. package h1;

    public class w1 {

    public static void main(String[] args) {
    int n =21;
    int [] f=new int [n];
    f[0]=f[1]=1;
    for(int i=2;i"+f[i]);
    }

    }

    }

    回覆刪除
  10. B10333106 劉郁芃2015年10月27日 下午5:23

    public class ff {

    public static void main(String[] args) {
    int n=21;
    int [] f=new int [n];
    f[0]=f[1]=1;
    for(int i=2; i"+f[i]);
    }
    }
    }

    回覆刪除

  11. public class ff {

    public static void main(String[] args) {
    int n=21;
    int [] f=new int[n];
    f[0]=f[1]=1;
    for(int i=2; i"+f[i]);
    }

    }

    }

    回覆刪除
  12. B10333070 徐承瑋2015年10月27日 下午5:27

    public class hw1 { public static void main(String[] args) { int n=21; int [] f=new int[n]; f[0]=f[1]=1; for(int i=2;i"+f[i]); } } }

    回覆刪除
  13. package p1;
    public class hw1 {
    public static void main(String[] args) {
    int n=21;
    int []f=new int [n];
    f[0]=f[1]=1;
    for(int i=2; i<n; i++){
    f[i]=f[i-1]+f[i-2];
    System.out.println(i+"--->"+f[i]);
    }
    }
    }

    回覆刪除
  14. B10333079 葉禮魁2015年10月27日 下午5:28

    public class hw1 {
    public static void main(String[] args) {
    int n=21;
    int [] f=new int [n];
    f[0]=f[1]=1;
    for(int i=2 ; i<n; i++)
    {
    f[i]=f[i-1]+f[i+2];
    System.out.println(i+"---->"+f[i]);
    }
    }

    回覆刪除
  15. package ex11;

    public class ccc {

    public static void main(String[] args) {
    int n=21;
    int [] f=new int [n];
    f[0]=f[1]=1;
    for (int i=2; i"+f[i]);
    }

    }

    }

    回覆刪除
  16. B10333107-曾詠浩-10272015年10月27日 下午5:28

    package b10333107;
    public class ff {
    public static void main(String[] args) {
    int n=21;
    int [] f=new int [n];
    f[0]=f[1]=1;
    for(int i=2;i<n;i++)
    {
    f[i]=f[i-1]+f[i-2];
    System.out.println(i+"------>"+f[i]);
    }



    }
    }

    回覆刪除

  17. public class ff {
    public static void main(String[] args) {
    int n=21;
    int [] f=new int[n];
    f[0]=f[1]=1;
    for(int i=2; i<n ; i++){
    f[i]=f[i-1]+f[i-2];
    System.out.println(i+"--->"+f[i]);
    }

    回覆刪除
  18. B10333097 胡聖恩2015年10月27日 下午5:30

    public class ff {
    public static void main(String[] args) {
    int n=21;
    int [] f=new int [n];
    f[0]=f[1]=1;
    for (int i=2; i<n;i++){
    f[i]=f[i-1]+f[i-2];
    System.out.println(i+"--->"+f[i]);
    }
    }
    }

    回覆刪除
  19. public class ff { public static void main(String[] args) { int n=21; int [ ] f=new int[n]; f[0]=f[1]=1; for(int i=2;i"+f[i]); } } }

    回覆刪除
  20. B10333086 陳晏堂2015年10月27日 下午5:30

    package hw;

    public class www {

    public static void main(String[] args)
    {
    int n=21;
    int [] f=new int[n];
    f[0]=f[1]=1;
    for(int i=2; i<n; i++){
    f[i]=f[i-1]+f[i-2];
    System.out.println(i+"-----&gt"+f[i]);
    }
    }
    }

    回覆刪除
  21. B10333055 翁恩義2015年10月27日 下午5:32

    package ex7;
    public class hw1 {
    public static void main(String[] args) {
    int n=21;
    int []f=new int[n];
    f[0]=f[1]=1;
    for(int i=2;i<n;i++){
    f[i]=f[i-1]+f[i-2];
    System.out.println(i+"--->"+f[i]);
    }

    }

    回覆刪除
  22. public class ff {
    public static void main(String[] args) {
    int n=21;
    int [] f=new int[n];
    f[0]=f[1]=1;
    for(int i=2;i<n;i++){
    f[i]=f[i-1]+f[i-2];
    System.out.println(i+"---->"+f[i]);
    }
    }
    }

    回覆刪除
  23. B10333057楊嘉昀e932015年10月27日 下午5:33

    package h1;
    public class w1 {
    public static void main(String[] args) {
    int n =21;
    int [] f=new int [n];
    f[0]=f[1]=1;
    for(int i=2;i<n;i++){
    f[i]=f[i-1]+f[i-2];
    System.out.println(i+"--->"+f[i]);
    }
    }
    }

    回覆刪除
  24. package p1;
    public class test1 {
    public static void main(String[] args) {
    int n=21;
    int []f=new int [n];
    f[0]=f[1]=1;
    for(int i=2; i"+f[i]);
    }
    }
    }

    回覆刪除
  25. B10333070 徐承瑋2015年10月27日 下午5:33


    public class hw1 {
    public static void main(String[] args) {

    int n=21;
    int [] f=new int[n];
    f[0]=f[1]=1;
    for(int i=2;i<n;i++){
    f[i]=f[i-1]+f[i-2];
    System.out.println(i+"---->"+f[i]);
    }
    }
    }

    回覆刪除
  26. B10333057楊嘉昀改2015年10月27日 下午5:33

    package h1;
    public class w1 {
    public static void main(String[] args) {
    int n =21;
    int [] f=new int [n];
    f[0]=f[1]=1;
    for(int i=2;i<n;i++){
    f[i]=f[i-1]+f[i-2];
    System.out.println(i+"--->"+f[i]);
    }
    }
    }

    回覆刪除
  27. B10333083,周琬芸 (改)2015年10月27日 下午5:33

    package HW1;

    public class P1
    {
    public static void main(String[] args)
    {
    int n=21;
    int [] f=new int[n];
    f[0]=f[1]=1;
    for(int i=2;i<n;i++)
    {
    f[i]=f[i-1]+f[i-2];
    System.out.println(i+"------>>"+f[i]);
    }
    }
    }

    回覆刪除
  28. package p1;
    public class test1 {
    public static void main(String[] args) {
    int n=21;
    int []f=new int [n];
    f[0]=f[1]=1;
    for(int i=2; i"+f[i]);
    }
    }
    }

    回覆刪除
  29. package p1;
    public class ff {
    public static void main(String[] args) {
    int n=21;
    int []f=new int [n];
    f[0]=f[1]=1;
    for(int i=2; i"+f[i]);
    }
    }
    }

    回覆刪除

  30. public class hw1 {
    public static void main(String[] args) {

    int n=21;
    int [] f=new int[n];
    f[0]=f[1]=1;
    for(int i=2;i<n;i++){
    f[i]=f[i-1]+f[i-2];
    System.out.println(i+"---->"+f[i]);
    }
    }
    }

    回覆刪除
  31. package zxcv;

    public class asdf {

    public static void main(String[] args) {
    int n=21;
    int[] f=new int[n];
    f[0]=f[1]=1;
    for(int i=2;i<n;i++){
    f[i]=f[i-1]+f[i-2];
    System.out.println(i+"--->"+f[i]);
    }
    }
    }

    回覆刪除
  32. B10333086 陳晏堂2015年10月27日 下午5:35

    package hw;

    public class www {

    public static void main(String[] args)
    {
    int n=21;
    int [] f=new int[n];
    f[0]=f[1]=1;
    for(int i=2; i&ltn; i++){
    f[i]=f[i-1]+f[i-2];
    System.out.println(i+"-----&gt"+f[i]);
    }
    }
    }

    回覆刪除
  33. package pp1;
    public class h1 {
    public static void main(String[] args) {
    int n=21;
    int []f=new int [n];
    f[0]=f[1]=1;
    for(int i=2; i<n; i++){
    f[i]=f[i-1]+f[i-2];
    System.out.println(i+"--->"+f[i]);
    }
    }
    }

    回覆刪除
  34. package hw;

    public class www {

    public static void main(String[] args)
    {
    int n=21;
    int [] f=new int[n];
    f[0]=f[1]=1;
    for(int i=2; i"+f[i]);
    }
    }
    }

    回覆刪除
  35. package p1;

    public class teat
    {

    public static void main(String[] args)
    {
    // TODO Auto-generated method stub

    int n=21;
    int [] f=new int[n];
    f[0]=f[1]=1;
    for(int i=2; i"+f[i]);
    }
    }

    }

    回覆刪除
  36. package p1;
    public class hw1 {
    public static void main(String[] args) {
    int n=21;
    int []f=new int [n];
    f[0]=f[1]=1;
    for(int i=2; i"+f[i]);
    }
    }
    }

    回覆刪除

  37. public class ff {

    public static void main(String[] args) {
    int n=21;
    int [] f=new int[n];
    f[0]=f[1]=1;
    for(int i=2; i<i++){
    f[i]=f[i-1]+f[i-2];
    System.out.println(i+"---&gt"+f[i]);
    }

    }

    }

    回覆刪除
  38. package hw;

    public class www {

    public static void main(String[] args)
    {
    int n=21;
    int [] f=new int[n];
    f[0]=f[1]=1;
    for(int i=2; i"+f[i]);
    }
    }
    }

    回覆刪除
  39. B10333106 劉郁芃2015年10月27日 下午5:35

    public class ff { public static void main(String[] args) { int n=21; int [] f=new int [n]; f[0]=f[1]=1; for(int i=2; i"+f[i]); } } }

    回覆刪除
  40. package p1;
    public class hw1 {
    public static void main(String[] args) {
    int n=21;
    int []f=new int [n];
    f[0]=f[1]=1;
    for(int i=2; i"+f[i]);
    }
    }
    }

    回覆刪除
  41. package p1;
    public class hw1 {
    public static void main(String[] args) {
    int n=21;
    int []f=new int [n];
    f[0]=f[1]=1;
    for(int i=2; i"+f[i]);
    }
    }
    }

    回覆刪除
  42. package p1;
    public class hw1 {
    public static void main(String[] args) {
    int n=21;
    int []f=new int [n];
    f[0]=f[1]=1;
    for(int i=2; i"+f[i]);
    }
    }
    }

    回覆刪除
  43. package hw;

    public class www {

    public static void main(String[] args)
    {
    int n=21;
    int [] f=new int[n];
    f[0]=f[1]=1;
    for(int i=2; i"+f[i]);
    }
    }
    }

    回覆刪除
  44. package hw;

    public class www {

    public static void main(String[] args)
    {
    int n=21;
    int [] f=new int[n];
    f[0]=f[1]=1;
    for(int i=2; i"+f[i]);
    }
    }
    }

    回覆刪除
  45. B10333075 曾敬堯2015年10月27日 下午5:36

    package p1;
    public class hw1 {
    public static void main(String[] args) {
    int n=21;
    int []f=new int [n];
    f[0]=f[1]=1;
    for(int i=2; i"+f[i]);
    }
    }
    }

    回覆刪除
  46. B10333066 周政霆2015年10月27日 下午5:36

    package p1;
    public class hw1 {
    public static void main(String[] args) {
    int n=21;
    int []f=new int [n];
    f[0]=f[1]=1;
    for(int i=2; i"+f[i]);
    }
    }
    }

    回覆刪除
  47. package P1;

    public class hw1 {

    public static void main(String[] args) {
    // TODO Auto-generated method stub
    int n=21;
    int [] f=new int[n];
    f[0]=f[1]=1;
    for(int i=2; i"+f[i]);
    }
    }

    }

    回覆刪除
  48. B10333065 林雨婷2015年10月27日 下午5:37

    package p1;
    public class hw1 {
    public static void main(String[] args) {
    int n=21;
    int []f=new int [n];
    f[0]=f[1]=1;
    for(int i=2; i"+f[i]);
    }
    }
    }

    回覆刪除
  49. public class hw1 {
    public static void main(String[] args) {

    int n=21;
    int [] f=new int[n];
    f[0]=f[1]=1;
    for(int i=2;i"+f[i]);
    }
    }
    }

    回覆刪除
  50. B10333072黃玟茜_資管二乙2015年10月27日 下午5:39

    package p1;

    public class ff {

    public static void main(String[] args) {
    int n=21;
    int [] f=new int [n];
    f[0]=f[1]=1;
    for(int i=2;i<n;i++){
    f[i]=f[i-1]+f[i-2];
    System.out.println(i+"--->"+f[i]);
    }

    }

    }

    回覆刪除
  51. B10333093 徐子軒2015年10月27日 下午5:40

    public class hw1 {
    public static void main(String[] args) {int n=21;int [] f=new int[n]ㄤf[0]=f[1]=1;for(int i=2;i<n;i++){f[i]=f[i-1]+f[i-2];System.out.println(i+"---->"+f[i]);
    }
    }
    }

    回覆刪除
  52. package hw;

    public class www {

    public static void main(String[] args)
    {
    int n=21;
    int [] f=new int[n];
    f[0]=f[1]=1;
    for(int i=2; i"+f[i]);
    }
    }
    }

    回覆刪除
  53. B10333062 邱鐠生2015年12月22日 下午3:15

    package hw;

    public class www {

    public static void main(String[] args)
    {
    int n=21;
    int [] f=new int[n];
    f[0]=f[1]=1;
    for(int i=2; i"+f[i]);
    }
    }
    }

    回覆刪除
  54. public class hw1 {
    public static void main(String[] args) {

    int n=21;
    int [] f=new int[n];
    f[0]=f[1]=1;
    for(int i=2;i"+f[i]);
    }
    }
    }

    回覆刪除
  55. B10236116 許誌文2015年12月22日 下午3:20

    public class hw1 {
    public static void main(String[] args) {int n=21;int [] f=new int[n]ㄤf[0]=f[1]=1;for(int i=2;i"+f[i]);
    }
    }
    }

    回覆刪除
  56. public class hw1 {
    public static void main(String[] args) {

    int n=21;
    int [] f=new int[n];
    f[0]=f[1]=1;
    for(int i=2;i"+f[i]);
    }
    }
    }

    回覆刪除
  57. B10333059 吳紹松2015年12月22日 下午3:25

    public class hw1 {
    public static void main(String[] args) {

    int n=21;
    int [] f=new int[n];
    f[0]=f[1]=1;
    for(int i=2;i"+f[i]);
    }
    }
    }

    回覆刪除
  58. B10333060 方際盛2015年12月22日 下午3:28

    public class hw1 {
    public static void main(String[] args) {

    int n=21;
    int [] f=new int[n];
    f[0]=f[1]=1;
    for(int i=2;i"+f[i]);
    }
    }
    }

    回覆刪除
  59. public class hw1 {
    public static void main(String[] args) {

    int n=21;
    int [] f=new int[n];
    f[0]=f[1]=1;
    for(int i=2;i"+f[i]);
    }
    }
    }

    回覆刪除
  60. public class hw1 {
    public static void main(String[] args) {

    int n=21;
    int [] f=new int[n];
    f[0]=f[1]=1;
    for(int i=2;i"+f[i]);
    }
    }
    }

    回覆刪除
  61. public class hw1 {
    public static void main(String[] args) {

    int n=21;
    int [] f=new int[n];
    f[0]=f[1]=1;
    for(int i=2;i"+f[i]);
    }
    }
    }

    回覆刪除
  62. public class hw1 {
    public static void main(String[] args) {

    int n=21;
    int [] f=new int[n];
    f[0]=f[1]=1;
    for(int i=2;i"+f[i]);
    }
    }
    }

    回覆刪除
  63. public class hw1 {
    public static void main(String[] args) {

    int n=21;
    int [] f=new int[n];
    f[0]=f[1]=1;
    for(int i=2;i"+f[i]);
    }
    }
    }

    回覆刪除
  64. public class hw1 {
    public static void main(String[] args) {

    int n=21;
    int [] f=new int[n];
    f[0]=f[1]=1;
    for(int i=2;i"+f[i]);
    }
    }
    }

    回覆刪除
  65. public class hw1 {
    public static void main(String[] args) {

    int n=21;
    int [] f=new int[n];
    f[0]=f[1]=1;
    for(int i=2;i"+f[i]);
    }
    }
    }

    回覆刪除
  66. 林羿君 B103331092016年1月5日 下午2:22

    public class hw1 {

    public static void main(String[] args) {



    int n=21;

    int [] f=new int[n];

    f[0]=f[1]=1;

    for(int i=2;i"+f[i]);

    }

    }

    }

    回覆刪除
  67. B10333071廖智加2016年1月5日 下午2:25

    public class hw1 {
    public static void main(String[] args) {

    int n=21;
    int [] f=new int[n];
    f[0]=f[1]=1;
    for(int i=2;i"+f[i]);
    }
    }
    }

    回覆刪除

HTML 編輯器