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[99, 99];
for (int i = 1; i <= 9; i++)
{
for (int j = 1; j <= 9; j++)
{
sum = i * j;
arr1[i, j] = sum;
}
}
for (int i=1;i<=9;i++)
{
for (int j = 1; j <= 9; j++)
{
Console.WriteLine("" + i + "*" + "" + j + "=" + arr1[i, j]);
Console.WriteLine("i=" + i + "j= " + j);
}
}
Console.WriteLine("by kax0205");
}
}
}
2010年9月24日 星期五
2010年9月17日 星期五
2010-09-17 作業
#include <cstdlib>
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
int i;
int sum;
sum=0;
for( i = 1 ; i <= 100 ; i++ )
sum=sum+i;
printf("\n1-100總和等於:\n");
printf("%d\n\n",sum);
printf("==========\n");
printf(" kax0205\n");
printf("==========\n\n");
system("PAUSE");
return EXIT_SUCCESS;
}
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
int i;
int sum;
sum=0;
for( i = 1 ; i <= 100 ; i++ )
sum=sum+i;
printf("\n1-100總和等於:\n");
printf("%d\n\n",sum);
printf("==========\n");
printf(" kax0205\n");
printf("==========\n\n");
system("PAUSE");
return EXIT_SUCCESS;
}
訂閱:
文章 (Atom)