Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
633 B
2
Indexable
Never
#include <iostream>
using namespace std;
int main()
{
  
	int tab1[5][5];
	int tab2[5][5];

	int wynik[5][5];

	for (int i = 0; i < 5; i++)
	{
		for (int j = 0; j < 5; j++)
		{
	
			tab1[i][j]= 51 + rand() % 90;
			tab1[i][j] = 1 + rand() % 41;

			wynik[i][j] = tab1[i][j] - tab2[i][j];

			cout << wynik << "\n";

		}
	}
	for (int i = 0; i < 5; i++)
	{
		for (int j = 0; j < 5; j++)
		{

	
			wynik[i][j] = tab1[i][j] - tab2[i][j];

	

		}
	}
	for (int i = 0; i < 5; i++)
	{
		for (int j = 0; j < 5; j++)
		{


			
			cout << wynik[i][j] << " ";


		}
		cout << "\n";
	}
	
	
}
Leave a Comment