#define N 5
#include <stdio.h>
typedef struct{
    float x, r;
} entry;
void cal_row(entry (* a)[N], int j){
    int i;
        for(i=0; i<N; i++){ a[j][i].r = a[j][i].x / a[j][j].x * 100;}
}
int main() {
    int i, j;
    entry a[N][N];
    for(i=0; i<N; i++)
        for(j=0; j<N; j++)
            scanf("%f", &a[i][j].x);
    for(i=0; i<N; i++)
        cal_row(a,i);
    for(i=0; i<N; i++)
        for(j=0; j<N; j++)
        printf("%f ", a[i][j].r);
        printf("\n");
    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: