final project

# final project - #include #include...

This preview shows pages 1–2. Sign up to view the full content.

Sheet1 Page 1 #include <stdio.h> #include <conio.h> #include <stdlib.h> main() { int n1,n2,n3,r1,c1,r2,c2,r3,c3,r4,c4,r5,c5,x,y float A[10][10] float B[10][10] float C[10][10] x=0 while(n1!=6) { printf("\n|| Matrix Operations ||\n\n\nMain Menu\n\n") printf("1. Enter the data for matrix A and B\n2. Addition\n3. Subtraction\n4. Multiplication\n5. Display matrices A, B and C (the r system("cls") if(n1==1) { printf("\nPreferred number of rows for matrix A:\n") printf("\nPreferred number of columns for matrix A:\n") system("cls") printf("\nPreferred number of rows for matrix B:\n") printf("\nPreferred number of columns for matrix B:\n") system("cls") if((r1<=10)&&(r2<=10)&&(c1<=10)&&(c2<=10)) { for(r4=0 { for(c4=0 { printf("\nEnter data for Matrix A:\n\n") printf("What number do you want to put at row %d, column %d?\n", r4+1,c4+1) system("cls") } } for(r4=0 { for(c4=0 { printf("\nEnter data for Matrix B:\n\n") printf("What number do you want to put at row %d, column %d?\n", r4+1,c4+1) system("cls") } } printf("\nData was successfully added\n\n")

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### Page1 / 14

final project - #include #include...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online