jituTechnology

jituTechnology

C Programming

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

A program to find the length of given string using pointer and function.

A program to find the length of given string using pointer and function. Codes /*A program to find the length of given string using pointer and function*/ /*Programed by          Jitendra Kr Yadav                         10116                         2Apr,2011*/ #include<stdio.h> #include<conio.h> main() { char string[20]; int count=0; char *ptr; printf(“Enter the string: “); gets(string); for(ptr=&string[0];*ptr!=’\0′;ptr++) if(*ptr!=’ ‘) count+=1; […]

read more

Write a program to read the Principle,Time,and Rate nd calculate the Interest and Total Amount

/*A program to read the Principle. Time, and Rate and calculate the Interest and total Amount. Programmed by: Name: Jitendra Kumar Yadav Roll: 16 Date: 8 Jan 2011 */ #include <stdio.h> #include <conio.h> void main() { float P,T,R,I,A; printf(“Enter the principle(P):”); scanf(“%f”,&P); printf(“Enter the Time(T):”); scanf(“%f”,&T); printf(“Enter the Rate(R):”); scanf(“%f”,&R); I=(P*T*R)/100; A=P+I; printf(“The Interest is […]

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

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


Connect with Me

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

Calendar

May 2024
S M T W T F S
 1234
567891011
12131415161718
19202122232425
262728293031