#include <stdio.h>
#include<stdlib.h>
int main( ) {
//int n;
//scanf("%d",&n);
int tab[ 3 ] [ 3 ] ;
int i, j, tmp;
// wprowadzenie danych
for ( i= 0 ; i< 3 ; i++ ) {
for ( j= 0 ; j< 3 ; j++ ) {
printf ( "Prosze podac element tab[%d][%d]:" , ( i
+ 1 ) , ( j
+ 1 ) ) ; }
}
// wyswietlenie
for ( i= 0 ; i< 3 ; i++ ) {
for ( j= 0 ; j< 3 ; j++ ) {
}
}
printf ( "przykladowe zadanie\n " ) ; for ( i= 0 ; i< 3 ; i++ ) {
for ( j= 0 ; j< 3 ; j++ ) {
if ( tab[ i] [ j] == 2 ) {
printf ( "w tablicy jest element 2\n " ) ; break ; }
}
}
return 0 ;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlPHN0ZGxpYi5oPgoKaW50IG1haW4oKXsKICAgIC8vaW50IG47CiAgICAvL3NjYW5mKCIlZCIsJm4pOwogICAgaW50IHRhYlszXVszXTsKICAgIGludCBpLGosdG1wOwogICAgCiAgICAvLyB3cHJvd2FkemVuaWUgZGFueWNoCiAgICBmb3IoaT0wO2k8MztpKyspewogICAgICAgZm9yKGo9MDtqPDM7aisrKXsKICAgICAgICAgIHByaW50ZigiUHJvc3plIHBvZGFjIGVsZW1lbnQgdGFiWyVkXVslZF06IiwoaSsxKSwoaisxKSk7CiAgICAgICAgICBzY2FuZigiJWQiLCZ0YWJbaV1bal0pOwogICAgICAgICAgfQogICAgICAgfQogICAgICAgICAgCiAgICAvLyB3eXN3aWV0bGVuaWUKICAgIGZvcihpPTA7aTwzO2krKyl7CiAgICAgICBmb3Ioaj0wO2o8MztqKyspewogICAgICAgICAgcHJpbnRmKCIlZFx0Iix0YWJbaV1bal0pOyAgICAgICAKICAgICAgICAgIH0gICAgCiAgICAgICAgICBwcmludGYoIlxuIik7CiAgICAgICB9CiAgICBzeXN0ZW0oInBhdXNlIik7CiAgICBwcmludGYoInByenlrbGFkb3dlIHphZGFuaWVcbiIpOwogICAgZm9yKGk9MDtpPDM7aSsrKXsKICAgICAgIGZvcihqPTA7ajwzO2orKyl7CiAgICAgICBpZih0YWJbaV1bal09PTIpewogICAgICAgICAgICAgcHJpbnRmKCJ3IHRhYmxpY3kgamVzdCBlbGVtZW50IDJcbiIpOwogICAgICAgICAgICAgYnJlYWs7fSAgIAogICAgICAgICAgIH0KICAgICAgIH0gCiAgICBzeXN0ZW0oInBhdXNlIik7CiAgICByZXR1cm4gMDsKfSAgICAg