zoukankan      html  css  js  c++  java
  • 戴维营第四天上课总结

    今天大茶继续给我们讲解C语言的知识点, 以及注意事项, 由于没有基础, 所以学习进度非常的慢, 虽然有很多东西都难以理解, 但越是难以理解, 编程的魅力就越大, 哪怕是我只会让电脑输出一个hello, 我也是成就感十足, 编程世界的魅力难以抗拒, 今天大茶给我们布置了一道题目, 以我的能力, 我暂时写不出来, 所以我自己想了一些小题目来锻炼自己的逻辑思维能力, 以下就是我今天的代码

        int row = 5, column = 5;     //先设定行数和列数
        
        for(int i = 0; i <= row; i++)    //设定循环的条件
        {
            
            for (int j = 0; j <= column - i; j++) {    //设定循环的条件
                printf("%d", 1);
            }
            printf("
    ");
        }
        
        
        printf("循环结束
    ");
        
        return 0;
    }

    输出的结果是:

    111111

    11111

    1111

    111

    11

    1

    循环结束

    Program ended with exit code: 0

     

    逻辑思维的能力没有锻炼起来, 头皮都要脱几层, 要去多做题目, 和自己动脑运算了, 继续加油~~~

  • 相关阅读:
    LeetCode Power of Three
    LeetCode Nim Game
    LeetCode,ugly number
    LeetCode Binary Tree Paths
    LeetCode Word Pattern
    LeetCode Bulls and Cows
    LeeCode Odd Even Linked List
    LeetCode twoSum
    549. Binary Tree Longest Consecutive Sequence II
    113. Path Sum II
  • 原文地址:https://www.cnblogs.com/iOSCain/p/3980112.html
Copyright © 2011-2022 走看看