Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  s
Language: C/C++
Code:
#include <stdio.h>
#include <math.h>
int main()
{
     double x[2][3];
     int  i, j,  k, k2;
     for(i=0; i<2; i++)
     for(j=0; j<3; j++)     
     scanf ("%lf", &x[i][j]);
     k=0;
     k2=0;
     for(i=0; i<2; i++)
     for(j=0; j<3; j++)
     k++;
     if (x[i][j] < 1 && x[i][j]>0)
          {
               k2++;
          }
     printf("kolichestvo elementov matrici X = %i n",k);
     
     printf("kolichestvo elementov <0 > 1 v matrice X = %i", k2);
     scanf("%i",&i);

}
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
Comments: