Which of the following is a correct variable declaration to store a 3 by 3 matrix of BMI measurements of9 patients, e.g. 22, 28.2, 23, 26.5 etc?
Answers
Answered by
0
Answer:
kdydbalkasngxjsllahzgbdsbhrjbrjcgjggmndhdhfngn bxj
Explanation:
kfuvnfhdyksuzudncjdjjmmnfidjskajs
Answered by
3
Program is given below.
Explanation:
#include <stdio.h>
int main()
{
//Variable declaration
float BMI[3][3];
int i,j;
printf("Enter the BMI measurements of 9 patients: \n");
for(i=0;i<3;i++)
{
for(j=0;j<3;j++)
scanf("%f",&BMI[i][j]);
}
printf("Entered details are: \n");
for(i=0;i<3;i++)
{
for(j=0;j<3;j++)
{
printf("%0.2f ",BMI[i][j]);
}
printf("\n");
}
return 0;
}
Refer the attached image for the output.
Attachments:
Similar questions