Consider an array A 3 5 4 6 8 25 s2 a Solutioninclude includ

Consider an array A=

3 5 -4 6 8 25 s2 a»

Solution

#include<stdio.h>

#include<math.h>

int main()

{

int a[3][3]={3,5,-4;-6,8,25;-17,9,-1};

int b[3][3]={0,0,0;0,0,0;0,0,0};

for(int i=0;i<3;i++)

{

for(int j=0;j<3;j++)

{

if(a[i][j]>=1)

b[i][j]=log(a[i][j]);

if(a[i][j]<1)

b[i][j]=a[i][j]+20;

}

}

return 0;

}

Consider an array A= 3 5 -4 6 8 25 s2 a» Solution#include<stdio.h> #include<math.h> int main() { int a[3][3]={3,5,-4;-6,8,25;-17,9,-1}; int b[3][3]=

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site