using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
/* int sum = 0;
int[] arr1 = new int[101];
int k;
for (int i = 1; i <= 100; i++)
{
sum = sum + i;
Console.WriteLine("i=" + i);
Console.WriteLine("sum=" + sum);
arr1[i] = sum;
}
*/
int[,] arr2 = new int[10, 10];
for (int i = 1; i <= 9; i++)
{
for (int j = 1; j <= 9; j++)
{
arr2[i, j] = i * j;
Console.WriteLine();
Console.WriteLine("i=" + i + "j=" + j);
}
}
for (int i = 1; i <= 9; i++)
{
for (int j = 1; j <= 9; j++)
{
Console.WriteLine("arr[{0},{1}]={2}",i,j,arr2[i,j]);
}
}
}
}
}
2010年9月24日 星期五
2010年9月17日 星期五
2010/09/17
#include <cstdlib>
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
int i,sum;
sum=0;
for(i=1;i<=100;i++)
sum=sum+i;
printf("%d\n",sum);
system("PAUSE");
return EXIT_SUCCESS;
}
//
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
int i,sum;
sum=0;
for(i=1;i<=100;i++)
sum=sum+i;
printf("%d\n",sum);
system("PAUSE");
return EXIT_SUCCESS;
}
//
訂閱:
文章 (Atom)
Use google protocol buffers + QT +CMAKE
Protocol Buffers https://developers.google.com/protocol-buffers/ Serialize and ParseFrom https://www.jianshu....
-
Java Class Frame java 版面 BorderLayout Java Class TextField //AWT, Button類別 import java.awt.*; import java.awt.event.*; public class A...
-
IDE - 整合開發環境 Integrated development environment. IDE 就是 developer 用來寫程式的一個環境/介面,比如說 Eclipse , IntelliJ , Android Studio , Vi...