jituTechnology

jituTechnology

Uncategorized

A program for floating number to be raised to an integer number using function.

2.           A program for floating number to be raised to an integer number using function. Codes /*A program for floating number to be raised to an integer number using function*/ /*Programed by          Jitendra Kr Yadav                         10116                         22 Mar,2011*/ #include<stdio.h> #include<conio.h> void power(float, int); main() { float a; int b; printf(“Enter the number: “); […]

read more

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

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

read more

write a program for matrix multiplication of size 3*3

write a program for matrix multiplication of size 3*3 /*a program for matrix multiplication of size 3*3 programmed by: Name: Jitendra Kr Yadav roll: 10116 date: 29 april 2011*/ #include <stdio.h> #include <conio.h> void main() { int c[3][3]; int a[3][3]={{1,2,3},{4,5,6},{6,7,8}}; int b[3][3]={{9,8,7},{6,5,4},{3,2,1}}; int i,j,k; for(i=0; i<3; i++) {      for(j=0; j<3; j++)    {    […]

read more

Program to read 5*5 matrix and find sum of diagonal elements and to find sum of diagonal elements and all elements

/*Q.8.Program to read 5*5 matrix and find sum of diagonal elements and to find sum of diagonal elements and all elements Programmed by: Jitendra Kr Yadav Roll: 10116 Date: 2011/04/10*/ #include <stdio.h> #include <conio.h> void main() { int a[5][5]={{1,2,3,4,5},{6,4,2,7,9}, {4,9,4,2,7},{6,4,3,8,9},{4,5,4,3,7}}; int s=0; int i,j; int sum = 0; for(i=0;i<5;i++) {            for(j=0;j<5;j++)            […]

read more

Program to obtain 3*4 matrix and transpose of it.

/*Q.7.Program to obtain 3*4 matrix and transpose of it. Programmed by: Jitendra Kr Yadav Roll : 10116 Date: 2011/04/10*/ #include <stdio.h> #include <conio.h> void main() { int a[3][4] ={{1,2,3,4},{6,4,7,9},{9,4,2,7}}; int c[4][3]; int i,j; for(i=0;i<3;i++) {      for(j=0;j<4;j++)            {            c[j][i] = a[i][j];          }           printf (“\n”);     }            […]

read more


Connect with Me

GPO 8973 NPC 541; Kathmandu Nepal
Phone: +977 9851236800

Calendar

April 2024
S M T W T F S
 123456
78910111213
14151617181920
21222324252627
282930