Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Windows.Forms;
- namespace TEST
- {
- class MainClass
- {
- public static void Main (string[] args)
- {
- int a = 5;
- int b = 2;
- int i;
- string[] z = new String[5];
- z[0] = String.Format("Wynik dodawania {0} + {1} = {2}",a,b,a+b);
- z[1] = String.Format("Wynik odejmowania {0} - {1} = {2}",a,b,a-b);
- z[2] = String.Format("Wynik mnożenia {0} * {1} = {2}",a,b,a*b);
- z[3] = String.Format("Wynik dzielenia {0} / {1} = {2}",a,b,a/b);
- z[4] = String.Format ("Reszta z dzielenia {0} % {1} = {2}", a, b, a % b);
- for(i=0;i<5;i++){
- MessageBox.Show(z[i]);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment