## PROGRAM TO FIND THE SIMPLE INTEREST WITH NO ARGUMENT AND NO RETURN VALUE

/* PROGRAM TO FIND THE SIMPLE INTEREST WITH NO ARGUMENT AND NO RETURN VALUE */ #include<stdio.h> #include<conio.h> void simple(); void main() { clrscr(); simple(); getch(); } void simple() { long int p,t; float r,si; printf(“\n ENTER THE VALUE OF PRINCIPLE : “); scanf(“%ld”,&p); printf(“\n ENTER THE VALUE OF RATE : “); scanf(“%f”,&r); printf(“\n ENTER THE […]

## PROGRAM TO PRINT THE ENTERED NUMBER IS POSITIVE OR NEGATIVE

/* PROGRAM TO PRINT THE ENTERED NUMBER IS POSITIVE OR NEGATIVE */ #include<stdio.h> #include<conio.h> void check(int n); void main() { int n; clrscr(); printf(“\n\n ENTER THE NUMBER : “); scanf(“%d”,&n); check(n); getch(); } void check(int num) { if(num>0) printf(“\n\n THE NUMBER ENTERED IS POSITIVE”); else if(num<0) printf(“\n\n THE NUMBER ENTERED IS NEGATIVE”); else printf(“\n\n THE […]

## PROGRAM TO ADD TWO NUMBERS USING FUNCTION

/* PROGRAM TO ADD TWO NUMBERS USING FUNCTION */ #include<stdio.h> #include<conio.h> void add(int a,int b); void main() { int a,b; clrscr(); printf(“ENTER THE VALUE OF X AND Y :”); scanf(“%d %d”,&a,&b); add(a,b); getch(); } void add(int x,int y) { int sum=0; sum=x+y; printf(“THE SUM IS :%d”,sum); }

## PROGRAM TO PRINT YOUR NAME USING FUNCTION

/* PROGRAM TO PRINT YOUR NAME USING FUNCTION */ #include<stdio.h> #include<conio.h> void name(); void main() { clrscr(); name(); getch(); } void name() { char a[100]; printf(“\n\n\t\tENTER THE NAME : “); gets(a); printf(“\n\n\t\tYOUR NAME IS : “); puts(a); }

## PROGRAM TO PRINT NUMBER 1 TO 10 USING FUNCTION

/* PROGRAM TO PRINT NUMBER 1 TO 10 USING FUNCTION */ #include<stdio.h> #include<conio.h> void func(); void main() { clrscr(); func(); getch(); } void func() { int i; printf(“THE NUMBERS FROM 1 TO 10 ARE DISPLAYED FOLLOWING\n”); for(i=1;i<=10;i++) { printf(“\n %d”,i); } }

## PROGRAM TO MERGE TWO ARRAYS

/* PROGRAM TO MERGE TWO ARRAYS */ #include<stdio.h> #include<conio.h> void main() { int a[100],b[50],i,j,num_a,num_b; textcolor(91); clrscr(); printf(“\n\n\t\tENTER THE NUMBER OF ELEMENTS FOR ARRAY A :”); scanf(“%d”,&num_a); printf(“\n\n\t\tENTER ELEMENTS of A\n”); for(i=1;i<=num_a;i++) { printf(“\n\n\t\t”); scanf(“%d”,&a[i]); } printf(“\n\n\t\tENTER THE NUMBER OF ELEMENTS FOR ARRAY B :”); scanf(“%d”,&num_b); printf(“\n\n\t\tENTER ELEMENTS OF B\n”); for(i=1;i<=num_b;i++) { printf(“\n\n\t\t”); scanf(“%d”,&b[i]); a[num_a+i]=b[i]; } […]

## Program to Find Maximum Element from an array

/* Program to Find Maximum Element from an array */ #include<stdio.h> #include<conio.h> void main() { int aray[20],max,i,num; clrscr(); printf(“\n\n\t\tENTER THE NUMBER OF ELEMENTS : “); scanf(“%d”,&num); printf(“\n\n\t\tENTER ELEMENTS\n”); for(i=1;i<=num;i++) { scanf(“%d”,&aray[i]); } max=aray[1]; for(i=1;i<=num;i++) { if(aray[i]>=max) { max=aray[i]; } } printf(“\n\n\t\tTHE MAXIMUM ELEMENT OF ARAY IS :%d”,max); getch(); }

## PROGRAM TO FIND ODD AND EVEN NUMBERS

/* PROGRAM TO FIND ODD AND EVEN NUMBERS */ #include<stdio.h> #include<conio.h> void main() { int aray[30],odd[30],even[30],i,num; int even_count=0,odd_count=0; clrscr(); printf(“\n\n\t\tENTER THE NUMBER OF ELEMENTS :”); scanf(“%d”,&num); printf(“\n\n\t\tENTER ELEMENTS\n”); for(i=1;i<=num;i++) { printf(“\n\n\t\t”); scanf(“%d”,&aray[i]); } for(i=1;i<=num;i++) { if(aray[i]%2==0) { even_count++; printf(“\n\n\t\teven number %d\t\n”,aray[i]); } else { odd_count++; printf(“\n\n\t\todd number %d\t\n”,aray[i]); } } printf(“\n\n\t\tYOU HAVE ENTERED EVEN NUMBERS […]

## PROGRAM TO FIND THE SUM OF DIAGONAL ELEMENTS

/* PROGRAM TO FIND THE SUM OF DIAGONAL ELEMENTS */ #include<stdio.h> #include<conio.h> void main() { int aray[10][10],i,j,row,col,sum=0; clrscr(); printf(“\n\nENTER THE NUMBER OF ROWS : “); scanf(“%d”,&row); printf(“\n\nENTER THE NUMBER OF COLUMNS :”); scanf(“%d”,&col); printf(“\n\nENTER THE ELEMENTS OF MATRIX \n\n”); for(i=1;i<=row;i++) { for(j=1;j<=col;j++) { scanf(“%d”,&aray[i][j]); } } for(i=1;i<=row;i++) { for(j=1;j<=col;j++) { if(i==j) sum=sum+aray[i][j]; } } printf(“\n\n\t\tTHE […]

## PROGRAM TO FIND THE SUM AND AVERAGE OF N ELEMENTS

/* PROGRAM TO FIND THE SUM AND AVERAGE OF N ELEMENTS */ include<stdio.h> include<conio.h> void main() { int aray[30],i,num,count=0; float avg=0.0,sum=0.0; clrscr(); printf(“\n\n\t\tENTER THE NUMBER OF ELEMENTS :”); scanf(“%d”,&num); printf(“\n\n\t\tENTER ELEMENTS\n”); for(i=1;i<=num;i++) { printf(“\n\n\t\t”); scanf(“%d”,&aray[i]); count++; } for(i=1;i<=num;i++) { sum=sum+aray[i]; } printf(“\n\n\t\tTHE SUM OF ENTERED NUMBERS IS : %f”,sum); avg=sum/count; printf(“\n\n\t\tTHE AVERAGE OF ENTERED NUMBERS […]

## PROGRAM TO PRINT THE ARRAY ELEMENTS

/* PROGRAM TO PRINT THE ARRAY ELEMENTS */ #include<stdio.h> #include<conio.h> void main() { int aray[30],i,num; clrscr(); printf(“\n\n\t\tENTER THE NUMBER OF ELEMENTS :”); scanf(“%d”,&num); printf(“\n\n\t\tENTER ELEMENTS \n\t\t”); for(i=1;i<=num;i++) { scanf(“%d”,&aray[i]); printf(“\n\t\t”); } printf(“\n\n\t\tYOU HAVE ENTERED THE FOLLOWING ELEMENTS \n”); for(i=1;i<=num;i++) { printf(“\n\n\t\t%d”,aray[i]); } getch(); }

## Solved Problem using C Language (SUPPOSE IN A SHIP THERE ARE 30 PERSONS AND 15 LIFE JACKETS.ONLY THESE LIFE JACKETS CAN SAVE THE LIFE OF PERSONS.WE HAVE TO SET THE LOOP IN SUCH A WAY THAT ONLY CAPTAIN’S 15’S EMPLOYEES GET LIFE JACKETS AND SAVE THEIR LIFE)

/* SUPPOSE IN A SHIP THERE ARE 30 PERSONS AND 15 LIFE JACKETS.ONLY THESE LIFE JACKETS CAN SAVE THE LIFE OF PERSONS.WE HAVE TO SET THE LOOP IN SUCH A WAY THAT ONLY CAPTAIN’S 15’S EMPLOYEES GET LIFE JACKETS AND SAVE THEIR LIFE. */ / * INCLUDE HEADER FILES***/ #include<stdio.h> #include<conio.h> / * DECLARE SELF-REFRENTIAL […]

## WRITE A PROGRAM TO PERFORM THE OPERATIONS OF SINGLY LINKED LIST

/*WRITE A PROGRAM TO PERFORM THE OPERATIONS OF SINGLY LINKED LIST */ / * INCLUDE HEADER FILES**/ #include<stdio.h> #include <conio.h> #include <string.h> #include <ctype.h> / * DECLARE SELF REFRENTIAL STRUCTURE/ struct node { char info[40]; struct node next;//POINTER WHICH POINTS TO THE NEXT NODE }head=NULL; / * DECLARATION OF THE FUNCTIONS THAT ARE USED IN […]

## WRITE A PROGRAM TO IMPLEMENT VARIOUS OPERATION ON DOUBLE CIRCULAR LINKED LIST USING STRING

/*INCLUDE HEADER FILES**/ #include<stdio.h> #include<conio.h> #include<ctype.h> /*DECLARE PROTOTYPE OF FUNCTIONS**/ void insert(); void delet(); void display(); void modify(); void upper(); void sort(); void location(); void remove1(); /*DECLARE SELF REFRENTIAL STRUCTURE**/ struct linked_list { char info[50]; struct linked_list *next; struct linked_list *prev; }start=NULL,node,tail,loc1,*ptr; /*MAIN FUNCTION START HERE**/ void main() { int choice,check; //DECLARE LOCAL VARIABLE char […]

## TO ENTER THE STRINGS IN STACK USING POINTERS

/ * TO ENTER THE STRINGS IN STACK USING POINTERS */ /*HEADER FILES****/ #include<stdio.h> /*TO USE scanf() & printf()*/ include<conio.h>/*TO USE getch()*/ include<stdlib.h>/*TO USE exit()*/ /*USING OF STRUCTURE*/ typedef struct node / * CHANGES NAME OF EXISTING DATA TYPES * / { char info[50]; struct node *next; /*USE OF SELF REFRENTIAL STRUCTURE* TO POINT TO […]

## SQL Fundamentals

No SQL FUNDAMENTAL: Structured Query Language (SQL) is language that provides an interface to relational database systems. SQL was developed by IBM in the 1970s for use in System R, and is a de facto standard, as well as an ISO and ANSI standard. SQL is often pronounced SEQUEL. SQL is a simple and powerful […]

## Program to implement Doubly Linked List with String using C Language

/* Program to implement Doubly Linked List with String using C Language */ #include<studio.h> #include<conio.h> #include<string.h> #include<ctype.h> struct list { char info[40]; struct list *next; struct list *prev; }head=NULL,tail=NULL; void insertion(); void deletion(); void display(); void modify(); void main() { int choice,check; char ch; clrscr(); do { textcolor(9); clrscr(); printf(“\n\n\t===============================================”); printf(“\n\n\t\t\tMENU”); printf(“\n\n\t===============================================”); printf(“\n\n\t1.INSERT THE STRING […]

## PSPCL Recruitment 2019 – 3500 Assistant Lineman Vacancy @ pspcl.in PSPCL Recruitment 2019 PSPCL aka Punjab State Power Corporation Limited invites Sarkari Job application for the post of 3500 Assistant Lineman. Apply Online before 25 August 2019. PSPCL Recruitment Qualification/eligibility conditions, how to apply & other rules are given below… Official website is www.pspcl.in

PSPCL – 3500 Assistant Lineman Vacancy – Last Date 25 August 2019 Post Name Assistant Lineman No Of PSPCL Vacancy 3500 Pay Scale 6400 – 20200/- pspcl.in Qualification ITI Age Limit 18 to 37 years Punjab Power Job Location Punjab Punjab State Power Corporation Limited – PSPCL Recruitment – 850 Lineman Apprentice Vacancy – Last […]

## Join Indian Army Recruitment 2019 – 213 JAG 24th Course, NCC Special Entry Scheme 47th Course & SSC Officers (AFMS) Vacancy @joinindianarmy.nic.in

Join Indian Army Recruitment 2019 Indian Army Invites Sarkari Job applications for the post of 213 JAG 24th Course, NCC Special Entry Scheme 47th Course & SSC Officers (AFMS) Vacancy 2019. Indian army recruitment Qualification/ eligibility conditions, how to Registration & other rules are give below…  Official website is www.joinindianarmy.nic.in Join Indian Army – JAG […]

## HSSC Jobs 2019 – Apply 2978 Clerk, Officer, Engineer Vacancies

Post Names: Clerk, Accountant, Steno Typist, Technician, Assistants etc. No of Vacancies: 2978 Vacancies Eligibility: Matric, ITI, Degree, Post Graduate Government of Haryana State, Haryana Staff Selection Commission (HSSC) invites online applications for direct recruitment for 2978 posts of DHBVN, UHBVN and HVPNL. Haryana Staff Selection Commission (HSSC) invites online applications for direct recruitment for […]