mp4也寄來了
跟預想差異剖大
不過反正得一次教訓學一次乖
就當作繳學費吧
今天偷懶一下
我們那組居然要開始拍片了耶
雖然我一定只會讓我發飆而已
所以稍微多花一點點點點點的時間弄一下影片吧
只是C#一樣要玩
剛好噗友裡有人在學C
那我就來用C#解他給的題目吧
我寫得程式碼
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
while(true){
int a, b, i, n;
Console.Write("請輸入總列數: ");
n = int.Parse (Console.ReadLine());
b = 1;
for (i = 1; i <= n; i++)
{
b = i;
for (a = 1; a <= i; a++)
{
Console.Write(b + "\t");
b += n - a;
}
Console.WriteLine();
}
Console.WriteLine();
}
}
}
}
結果
就醬~
看出規律來之後非常簡單
用迴圈爆就行了
順帶我是想試試 如何將Plurk噗浪「討論串」轉貼到部落格裡?
實驗結果~
沒有留言:
張貼留言