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;
- namespace ConsoleApplication1
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.WriteLine("enter number");
- int[] maarahA = new int[int.Parse(Console.ReadLine())];
- for (int i = 0; i < maarahA.Length; i++)
- {
- Console.WriteLine("enter number");
- maarahA[i] = int.Parse(Console.ReadLine());
- }
- int[] maarahB = new int[maarahA.Length];
- for (int i = 0; i < maarahA.Length; i++)
- {
- maarahB[i] = maarahA[i] * 2;
- Console.WriteLine(maarahB[i]);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment