C Programming code to convert inches to centimeters

C Programming code to convert inches to centimeters Algorithm Accept the number in inches Calculate centimeter using the formula Display the output Code #include<stdio.h> #include<conio.h> void main() { clrscr(); float n,m; printf("Enter the number in inches \n"); scanf("%f",&n); m=n*2.54; printf("\n Number in inches= %f",n); printf(" \n Number in centimeters= %f",m); getch(); }

C Programming Source Code to add two matrices

Below is C Programming Source Code to add two matrices. Algorithm Accept two matrices using for loop Check the size of the two matrices If their size is the same, add them else display error massage. #include <stdio.h> #include<conio.h> void main() { clrscr(); int r1, c1,r2,c2, i, j, A[10][10], B[10][10], sum[10][10]; printf("Enter the number of