Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- //using System.Threading.Tasks;
- namespace taulukko
- {
- class Program
- {
- static void Main(string[] args)
- {
- int r;
- r = 0;
- int s;
- int i;
- int solu;
- int lukunro;
- string luku;
- string title;
- Console.Write("Anna sarakkeiden määrä: ");
- luku = Console.ReadLine();
- int.TryParse(luku, out s);
- int[,] otsikko = new int[r,s];
- for(i = 0;i<s;i++)
- {
- Console.Write("Anna {0}. otsikko, mmax 5 kirjainta: ", i+1);
- luku = Console.ReadLine();
- otsikko[r,i] = luku;
- }
- Console.Write("Anna rivien määrä: ");
- luku = Console.ReadLine();
- int.TryParse(luku, out r);
- int[,] matrix1 = new int[r, s];
- for(i=0;i<r;i++)
- {
- for(i=0;i<s;i++)
- {
- solu = (r + 5) * 10 / (s + 1);
- Console.Write(solu);
- }
- }
- Console.ReadLine();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement