jituTechnology

jituTechnology

A program to calculate the area and perimeter of the rectangle using macro.

A program to calculate the area and perimeter of the rectangle using macro. Codes /*A program to calculate the area and perimeter of the rectangle using macro*/ /*Programed by          Jitendra Kr Yadav                          10116                          15 Mar,2011*/ #include<stdio.h> #include<conio.h> #define AREA l*b #define PERIMETER 2*(l+b) main() { int l,b; printf(“Enter the length and […]

read more

A program to swap the two integer variable using call by value.

A program to swap the two integer variable using call by value. Codes /*A program to find the factorial of a number using recursive function*/ /*Programed by          Jitendra Kr Yadav                          10116                          15 Mar,2011*/ #include<stdio.h> #include<conio.h> void swap(int,int); main() { int a,b; printf(“Enter the value of ‘a’ and ‘b’:\n”); scanf(“%d%d”,&a,&b); swap(a,b); getch(); […]

read more

A program to calculate the factorial of a given number using recursive function.

A program to calculate the factorial of a given number using recursive function. Codes /*A program to find the factorial of a number using recursive function*/ /*Programed by          Jitendra Kr Yadav                          10116                          15 Mar,2011*/ #include<stdio.h> #include<conio.h> int rec(int); main() { int fact,n; printf(“Enter the number:”); scanf(“%d”,&n); fact=rec(n); printf(“Factorial = %d\n\n”,fact); printf(“Press […]

read more

A program for matrix multiplication using separate function to read, add and display.

A program for matrix multiplication using separate function to read, add and display. Codes /*A program for matrix multiplication using separate function to read, add and display*/ /*Programed by          Jitendra Kr Yadav                          10116      22 Mar,2011*/ #include<stdio.h> #include<conio.h> void read(int matrix[][20],int,int); void mul(int matrix1[][20],int matrix2[][20],int,int); void display(int matrix[][20],int,int); main() { int matrix1[20][20]; int […]

read more

A program for matrix addition using separate function to read, add and display.

A program for matrix addition using separate function to read, add and display. Codes /*A program to sort the data in ascending order using function*/ /*Programed by          Jitendra Kr Yadav                          10116      22 Mar,2011*/ #include<stdio.h> #include<conio.h> void read(int matrix[][20],int,int); void add(int matrix1[][20],int matrix2[][20],int,int); void display(int matrix[][20],int,int); main() { int matrix1[20][20]; int matrix2[20][20]; int […]

read more