#includeint main(){ int a[5][5],i,j; printf("enter elements into 5 * 5 matrix"); for(i=0;i<> { for(j=0;j<> { printf("enter element into a[%d][%d]\n",i,j); scanf("%d",&a[i][j]); } } printf("upper triangular matrix\n"); for(i=0;i<> { for(j=0;j<> { if(i>j) { printf("0\t"); } else { printf("%d\t",a[i][j]); } } printf("\n"); } printf("Lower triangular matrix\n"); for(i=0;i<> { for(j=0;j<> { if(i>=j) { printf("%d\t",a[i][j]); } else { printf("0\t"); } } printf("\n"); } return 0;} WRİTE THİS CODE FLOWCHART
int main(){ int a[5][5],i,j; printf("enter elements into 5 * 5 matrix"); for(i=0;i<> { for(j=0;j<> { printf("enter element into a[%d][%d]\n",i,j); scanf("%d",&a[i][j]); } } printf("upper triangular matrix\n"); for(i=0;i<> { for(j=0;j<> { if(i>j) { printf("0\t"); } else { printf("%d\t",a[i][j]); } } printf("\n"); } printf("Lower triangular matrix\n"); for(i=0;i<> { for(j=0;j<> { if(i>=j) { printf("%d\t",a[i][j]); } else { printf("0\t"); } } printf("\n"); }
return 0;} WRİTE THİS CODE FLOWCHART
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here