zoukankan      html  css  js  c++  java
  • 朝发白帝城

    代码
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    namespace ConsoleApplication1
    {
        
    class Program
        {
            
    private static string s = "朝辞白帝彩云间,千里江陵一日还。两岸猿声啼不住,轻舟已过万重山。";
            
            
    static void Main(string[] args)
            {
                
    //朝辞白帝彩云间,千里江陵一日还。 两岸猿声啼不住,轻舟已过万重山。
                
                
                

                
    for (int i = 0; i < 8; i++)
                {
                    
    for (int j = 0; j < 4; j++)
                    {
                        Console.Write(s[i
    +24-8*j]);
                        
                    }
                    Console.WriteLine();
                }
                Console.WriteLine(
    "--------------------------");


                
    for (int n = 0; n < 8; n++)
                {
                    System.Console.Write(
    "{0}{1}{2}{3}", s[24 + n], s[16 + n], s[8 + n], s[0 + n]);
                    System.Console.WriteLine();
                }


                         
                
            }
        }
    }
  • 相关阅读:
    #Python#中国大学生实习-大数据分析
    PHP 数字转大写
    pdo封装2
    python tkinter组件学习
    微信小程序相关资料整理
    php任务管理器 —— Jobby
    linux 定时任务未执行php脚本
    centos中安装php7
    php资源列表
    给二维码(图片)添加文字(水印),让生成的二维码中间带logo
  • 原文地址:https://www.cnblogs.com/muyoushui/p/1675314.html
Copyright © 2011-2022 走看看