Write A Program to scan two dimensional array & print only even numbers

#include<stdio.h> #include<conio.h> void main ( ) { int a [10] [10], i, j, r, c , f = 0; printf (“enter number of ...

#include<stdio.h>
#include<conio.h>
void main ( )
{
int a [10] [10], i, j, r, c , f = 0;
printf (“enter number of rows and columns”);
scanf ( "%d%d”, & r, &c);
printf (“enter elements into an array”);
for ( i =0; i < r; i ++)
{
for ( j =0; j < c; j ++)
{
scanf (“%d”, & a[i][j]);
if (a[i][j]%2 = = 0)
{
printf (“\t %d”, a [i][j];
}
printf ( “\n”);
}
}
getch ( );
}

Related

C Programs 7178301887373618198

Post a Comment

emo-but-icon
:noprob:
:smile:
:shy:
:trope:
:sneered:
:happy:
:escort:
:rapt:
:love:
:heart:
:angry:
:hate:
:sad:
:sigh:
:disappointed:
:cry:
:fear:
:surprise:
:unbelieve:
:shit:
:like:
:dislike:
:clap:
:cuff:
:fist:
:ok:
:file:
:link:
:place:
:contact:

item