jituTechnology

jituTechnology

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 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

Write a program to calculate the factorial of a given number

Here is the c source code/program for: Write a program to calculate the factorial of a given number. /* a programme to calculate the factorial of a entered number*/ #include <stdio.h> #include <conio.h> void main() {      int a,i;    int fact=1;    printf(“Enter the number to calculate the factorial: “);    scanf(“%d”,&a);    for(i=1; […]

read more

Write the program to print following patterns 1 using loops

/*program to print numbers in the following  using loops. Programmed by : kiran shrestha Roll no. : 10121 Programmed on : 7th feb, 2011*/ #include <stdio.h> #include <conio.h> void main () {      int i,j;         for (i=1;i<=5;i++)            {            for (j=1;j<=i;j++)            {                      printf (“%d\t”,i);         }            […]

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