#include<stdio.h>
#include<conio.h>
void main()
{
int a[3][3],b[3][3],c[3][3],i,j;
clrscr();
printf("Enter first matrix
elements:\n");
for(i=0;i<3;i++)
{
for(j=0;j<3;j++)
{
scanf("%d",&a[i][j]);
}
}
printf("\nEnter second matrix elements:\n");
for(i=0;i<3;i++)
{
for(j=0;j<3;j++)
{
scanf("%d",&b[i][j]);
}
}
for(i=0;i<3;i++)
{
for(j=0;j<3;j++)
{
c[i][j]=a[i][j]+b[i][j];
}
}
printf("\n\nAddition of two matrices
is:");
for(i=0;i<3;i++)
{
for(j=0;j<3;j++)
{
printf("%d\t",c[i][j]);
}
}
getch();
}
Practical Lists with Source Code :
- Develop minimum 2 program using constants variables, arithmetic expression.
- Develop minimum 2 programs increment/decrement operators, exhibiting data type conversion.
- Write a simple program to convert temperature in a Fahrenheit degrees to Centigrade degrees in c programming.
- Write a simple program to calculate the area and the parameter of a rectangle and the area of circumference of the circle
- Write a program to determine whether a given year is a leap year in c programming
- Write a program to determine whether a string is palindrome in c programming
- Write a program to find the greatest of the three number using conditional operators in C program
- Write a program to find if a given character is vowel in C program
- Using switch statement write a program to print a day of the week by taking a number from 1 to 7 in C programming
- Using a switch statement write a program to print the students grade by accepting a percent marks in C programming
- Using switch statement write programs to check whether the triangle is isosceles, equilateral, scalene or right angled triangle.
- Looping write a program to find the sum of a digit of a given number in C program
- Looping write a program to generate multiplication table up to 10 for numbers 1 to 5 in C program
- Write a program to find the Fibonacci series in the given number in C programming
- Write a program to produce the following input1 2 3 4 5 6 7 8 9 10
- Array develop a program to sort the list of the number 10 in c programming
- Array write a program to perform the addition of 3 x3 matrix in C programming
- Structure developer program to create a structure called library to hold details of a book viz, the book, and flag indicating whether book is issued or not fetch some sample data and display the same in c programming C programming.
- Structure develop a program to execute C program to add two distance given in a kilometer using a structure in a C program.
- Library function develop program to demonstrate use of all string handling function in c programing.
- Library use of few mathematical function in C programming.
- Library functions develop program to demonstrate use of few other Miscellaneous C programs
- User defined function develop a program to create a function to find the GCD of a given number call this function in c program.