-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path019.cs
31 lines (27 loc) · 798 Bytes
/
019.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp4
{
internal class Program
{
static void Main(string[] args)
{
// Faça um programa que imprima na tela a tabuada de todos os números de 1 a 10.
StreamWriter ARQ = new StreamWriter("C:\\Users\\senai\\Downloads\\pati\\ConsoleApp4\\arq02.txt", true);
for (int i = 1; i <= 10; i++)
{
ARQ.Write($"\n--- Tabuada do {i} ---");
for (int j = 1; j <= 10; j++)
{
ARQ.Write($"\n{i} X {j} = {i * j}");
}
ARQ.Write("\n\n");
}
ARQ.Close();
}
}
}