jituTechnology

jituTechnology

A program to find the smallest element in an array using pointer.

A program to find the smallest element in an array using pointer. Codes /*A program to find the smallest element in an array using pointer*/ /*Programed by          Jitendra Kr Yadav                         10116                         2Apr,2011*/ #include<stdio.h> #include<conio.h> void smallest(int, int*); main() { intn,a[20]; printf(“Enter the no of input to be taken:”); scanf(“%d”,&n); printf(“Enter the input:\n”); for(int […]

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

>2.4 Design a class called Person that contains appropriate members for storing name, age, gender and telephone number

> /*Design a class called Person that contains appropriate members for storing name, age, gender and telephone number. Write member functions that can read and display these data. Programmed by: Name: Jitendra Kr Yadav Roll: 10116(NCIT-ELX) Date:20 july,2011*/                                                                                                           #include<iostream.h> #include<conio.h> #include<math.h> class Person { private: char name[30]; int age; char gender[7]; char phno[11]; public: […]

read more

A program to sort the data in ascending order using separate function to read, sort and display.

A program to sort the data in ascending order using separate function to read, sort 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 num[],int); void sort(int num[],int); void display(int num[],int); main() { int n[20],x; […]

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


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