jituTechnology

jituTechnology

Write a C program to read through an array of any type. Write a C program to scan through this array to find a particular value.

/*program to scan through this array to find a particular value programmed by: Name: Jitendra Kumar Yadav Roll: 10116 Date: 29 march 2011 */ #include <stdio.h> #include <conio.h> void main () { int i,n,index; int a[] = {1,2,3,4,5,6,7,8}; printf (“Enter a number from 1 to 8\n”); scanf (“%d”,&n); for (i=0;i<8;i++) { if (n==a[i]) index = […]

read more

A program to print the direct and indirect address and its content using “address of operator” and “indirection operator

A program to print the direct and indirect address and its content using “address of operator” and “indirection operator”. Codes /*A program to print the direct and indirect address and its content*/ /*Programed by          Jitendra Kr Yadav                         10116                         2 Apr,2011*/ #include<stdio.h> #include<conio.h> main() { int x; int *pt; printf(“Enter the number: “); scanf(“%d”,&x); […]

read more

>Write a Program using structure to create a database for a hospital giving details about the patient admitted.

>/*Write a Program using structure to create a database for a hospital giving details about the patient admitted. Programmed By: Name: Jitendra Kr Yadav Roll: 10116(NCIT-ELX) Date: 15 July 2011 */ #include <iostream.h> #include <conio.h> struct patient { char name[30]; int age; intbn; charnoi[30]; char gender[30]; intwn; struct dob { int day; int month; int […]

read more

Write a program to sort the data in ascending and descending order using selection sort.

/*program to sort the data in  ascending order using selection sort. Programmed by :Jitendra Kumar Yadav roll ni.: 10116 programmed on.: 21st mar,2011*/ #include <stdio.h> #include <conio.h> void main() { int i,j,temp; int arr[10]={2,1,6,5,8,4,9,7,10,3}; for (i=0;i<9;i++) { for (j=i+1;j<9;j++) { if(arr[i]>arr[j])//for descending change > to < { temp = arr[i]; arr[i] = arr[j]; arr[j] = […]

read more

The Sin of X can be calculated approximately by using the first n terms of the infinite series

The Sin of X can be calculated approximately by using the first n terms of the infinite series( X is expressed in radians, /*program to find sine of x can be calculated approximately by using the firstn terms of the infinite series. Programmed by : kiran shrestha roll no. : 10121 Programmed on : 6th […]

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