Untitled
Anonymous
plain_text
11/10/2024 10:42 AM
368 B
20
Indexable
#include <stdio.h>
int main(){
int a[3][3] ={{1, 2, 3},
{4, 5, 6},
{7, 8, 9}};
int trace = 0;
for(int i = 0; i < 3; i++){
for(int j = i+1; j < n; j++){
if(i == j)
trace += i;
}
}
printf("%d",trace);
return 0;
}
Editor is loading...
Leave a Comment