Untitled
unknown
plain_text
6 months ago
274 B
3
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