哪位高手帮忙 编写程序,打印出乘法99表?QQ594276313 马上马上马上 考试急需

来源:百度知道 编辑:UC知道 时间:2024/05/28 03:09:44

#include "stdio.h"
#define NUM 9
void main()
{
int num=1;
for(int i=1;i<=NUM;i++){
for(int j=1;j<=num;j++){
printf("%dX%d=%d ",j,i,i*j);
}
num++;
printf("\n");
}
}

用什么语言?
C语言一楼的帮你写好了,我的是c#版的
c#版的
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace test10000
{
class Program
{
static void Main(string[] args)
{
for (int i = 1; i <= 9; i++) //循环行
{
for (int j = 1; j <= i; j++) //循环列
{
Console.Write("{0}*{1}={2}", j, i, j * i); //输出结果
Console.Write("\t"); //空格
}
Console.WriteLine(); //换行
}
Console.Read();