/* Write A C Program To Find The Frequency Of

  • June 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View /* Write A C Program To Find The Frequency Of as PDF for free.

More details

  • Words: 170
  • Pages: 2
/* Write a C program to find the frequency of odd numbers * and even numbers in the input of a matrix

* */

#include <stdio.h> void main () { static int ma[10][10]; int i,j,m,n,even=0,odd=0; printf ("Enter the order ofthe matrix \n"); scanf ("%d %d",&m,&n); printf ("Enter the coefficients if matrix \n"); for (i=0;i<m;++i) { for (j=0;j
/* End of main() */

/*----------------------------------------------------Output Enter the order ofthe matrix 3 3 Enter the coefficients if matrix 1 2 3 4 5 6 7 8 9 The given matrix is 1 2 3 4 5 6 7 8 9 The frequency of occurance of odd number = 5 The frequency of occurance of even number = 4

-------------------------------------------------------*/

Related Documents