Add to Favorites    Make Home Page 2359 Online  
 Language Categories  
 Our Services  

Home » Pascal Home » Pascal Projects Home » Randomizes two 3x3 arrays and indicates the numbers whih are common in both the arrays otherwise an cross 'x' is shown instead.

A D V E R T I S E M E N T

Search Projects & Source Codes:

Title Randomizes two 3x3 arrays and indicates the numbers whih are common in both the arrays otherwise an cross 'x' is shown instead.
Description
Category Pascal » Pascal Projects
Hits 383852
Code Select and Copy the Code
{ Description: Randomizes two 3x3 arrays and indicates the numbers whih are common in both the arrays otherwise an cross 'x' is shown instead. } program randomarray; uses crt; type arr1 = array [1..3,1..3] of integer; var a1, a2, a3 : arr1; i, j : integer; procedure initialise1(var a_1 : arr1); begin for i:=1 to 3 do begin for j:=1 to 3 do begin a_1[i][j]:=random(10); end; end; end; procedure initialise2(var a_2 : arr1); begin for i:=1 to 3 do begin for j:=1 to 3 do begin a_2[i][j]:=random(10); end; end; end; procedure output1(var a_1 : arr1); begin for i:=1 to 3 do begin for j:=1 to 3 do begin write(a_1[i][j],' '); end; writeln; end; end; procedure output2(var a_2 : arr1); begin for i:=1 to 3 do begin for j:=1 to 3 do begin write(a_2[i][j],' '); end; writeln; end; end; procedure same(var a_1, a_2 : arr1); begin for i:=1 to 3 do begin for j:=1 to 3 do begin if a_1[i][j] = a_2[i][j] then write(a_1[i][j],' ') else write('x '); end; writeln; end; end; begin clrscr; randomize; initialise1(a1); initialise2(a2); output1(a1); writeln; output2(a2); writeln; same(a1,a2); readln; end.

Related Source Codes

Script Name Author
Calendar date to day number and back Nicky McLean
Matrix Multiple Cirruse Salehnasab
Function Power Recursive Cirruse Salehnasab
swim brian colston
tetris (Mini Project) mehdi farrokhzad
Macsi - space fighting game. Macsi P�ter
Recursive Monkey Puzzle Solution - Project Maxim C.L. Wrne
Maze Game Project In Pascal Mahmood
Excellent Rat in a Maze Program. VyomWorld
A car game. You have to drive the car in such a way that you dont strike a barrier on the road. VyomWorld
Student Database Information System. VyomWorld
Tic Tac Toe Game implemented in Pascal. VyomWorld
Game to Gain more blocks by drawing appropriate lines from correct places(dots). VyomWorld
To Find The Coinage Of The Amount Entered. VyomWorld
Program that checks the space on drive a: and also gives a graphical representation of memory. VyomWorld

A D V E R T I S E M E N T




Google Groups Subscribe to SourceCodesWorld - Techies Talk
Email:

Free eBook - Interview Questions: Get over 1,000 Interview Questions in an eBook for free when you join JobsAssist. Just click on the button below to join JobsAssist and you will immediately receive the Free eBook with thousands of Interview Questions in an ebook when you join.

New! Click here to Add your Code!


ASP Home | C Home | C++ Home | COBOL Home | Java Home | Pascal Home
Source Codes Home Page

 Advertisements  

Google Search

Google

Source Codes World.com is a part of Vyom Network.

Vyom Network : Web Hosting | Dedicated Server | Free SMS, GRE, GMAT, MBA | Online Exams | Freshers Jobs | Software Downloads | Interview Questions | Jobs, Discussions | Placement Papers | Free eBooks | Free eBooks | Free Business Info | Interview Questions | Free Tutorials | Arabic, French, German | IAS Preparation | Jokes, Songs, Fun | Free Classifieds | Free Recipes | Free Downloads | Bangalore Info | Tech Solutions | Project Outsourcing, Web Hosting | GATE Preparation | MBA Preparation | SAP Info | Software Testing | Google Logo Maker | Freshers Jobs

Sitemap | Privacy Policy | Terms and Conditions | Important Websites
Copyright ©2003-2024 SourceCodesWorld.com, All Rights Reserved.
Page URL: http://www.sourcecodesworld.com/source/show.asp?ScriptID=166


Download Yahoo Messenger | Placement Papers | Free SMS | C Interview Questions | C++ Interview Questions | Quick2Host Review