R34P3D

Untitled

Nov 3rd, 2012
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.74 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5.  
  6.  
  7. namespace ConsoleApplication1
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             Console.WriteLine("enter number");
  14.             int[] maarahA = new int[int.Parse(Console.ReadLine())];
  15.             for (int i = 0; i < maarahA.Length; i++)
  16.             {
  17.                 Console.WriteLine("enter number");
  18.                 maarahA[i] = int.Parse(Console.ReadLine());
  19.             }
  20.             int[] maarahB = new int[maarahA.Length];
  21.             for (int i = 0; i < maarahA.Length; i++)
  22.             {
  23.                 maarahB[i] = maarahA[i] * 2;
  24.                 Console.WriteLine(maarahB[i]);
  25.             }
  26.         }
  27.     }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment