0% found this document useful (0 votes)
15 views43 pages

C Record

Prostitute alert

Uploaded by

whitedevil.x10
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views43 pages

C Record

Prostitute alert

Uploaded by

whitedevil.x10
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 43

Ex.

No:
Date:
STUDENT MARKLIST

AIM:

Create a c program to take input of name ,rollno and marks obtained by a student in 4 subjects of
100 marks each and display the name,rollno with percentage score secured

PROCEDURE:

STEP 1: Start the program

STEP 2: Declare the variables

STEP 3: Get the input from the user like name ,rollno and four subjects marks

STEP 4: Calculate the values of total and percentage

STEP 5: Display the program

STEP 6: Stop the program SOURCE

CODING:
OUTPUT:

RESULT:

Thus the above program has successfully executed.


Ex.No:
Date:
DISPLAY THE MAXIMUM NUMBER

AIM:

Create a c program to input two number and display the maximum number.

PROCEDURE:

STEP 1: Start the program

STEP 2: Declare the variables

STEP 3: Get the input of the two numbers

STEP 4: Check whether a two inputs are different

STEP 5: Display the program

STEP 6: Stop the program

SOURCE CODING:
OUTPUT:

ESULT:

Thus the above program has successfully executed.


Ex.No:
Date:

FIND WHETHER A CHARACTER IS CONSONANT OR


VOWEL USING SWITCH STATEMENT
IM:
To write c program to find whether a character is consonant or vowel using switch statement.

PROCEDURE:

STEP 1: Start the program STEP 2:

Declare the variables

STEP 3: Get the input of the character

STEP 4: Check whether a character is consonant or vowel

STEP 5: Display the program

STEP 6: Stop the program

SOURCE CODING:
OUTPUT:

RESULT:
Thus the above program has successfully executed.
Ex.No:
Date:
TO PRINT POSITIVE INTEGERS FROM 1 TO 10 USING FOR LOOP

AIM:
Create a c program to print positive integers from 1 to 10.

PROCEDURE:

STEP 1: Start the program

STEP 2: Declare the variables

STEP 3: Check the for loop (i=1;i<10;i++) for print the positive integers from 1 to 10

STEP 4: Display the program

STEP 5: Stop the program

SOURCE CODING:
OUTPUT:

RESULT:
Thus the above program has successfully executed.
Ex.No:
Date:
CHECK WHETHER A NUMBER IS PALINDROME OR NOT

AIM: Create a c program to check whether a number is palindrome or not.

PROCEDURE:

STEP 1: Start the program

STEP 2: Declare the variables

STEP 3: Check whether a number is palindrome or not

STEP 4: Display the program

STEP 5: Stop the program

SOURCE CODING:
OUTPUT:

RESULT:
Thus the above program has successfully executed
Ex.No:
Date:
FIBONACCI SERIES

AIM:
Create a c program to generate Fibonacci series.

PROCEDURE:

STEP 1: Start the program

STEP 2: Declare the variables

STEP 3: Get the input of number of terms

STEP 4: Check whether a series is correct

STEP 5: Display the program

STEP 6: Stop the program

SOURCE CODING:
OUTPUT:

RESULT:
Thus the above program has successfully executed.
Ex.No:
Date:
INSERT ELEMENTS INTO AN ARRAY AND
PRINT THE ELEMENTS OF THE ARRAY

AIM: Create a c program to insert 5 elements into an array and print the elements of the array.

PROCEDURE:

STEP 1: Start the program

STEP 2: Declare the variables

STEP 3: Get the input of 5 elements into an array and print the elements of the array

STEP 4: Check whether a array was printed which user given.

STEP 5: Display the program

STEP 6: Stop the program

SOURCE CODING:
OUTPUT:

RESULT:
Thus the above program has successfully executed.
Ex.No:
Date:

REVERSE THE ARRAY ELEMENTS

AIM:
Create a c program to reverse the array elements in c programming.

PROCEDURE:

STEP 1: Start the program

STEP 2: Declare the variables

STEP 3: Get the input of 5 elements into an array and print the elements of the array

STEP 4: Check whether a array was printed was reverse which user given.

STEP 5: Display the program

STEP 6: Stop the program

SOURCE CODING:
OUTPUT:

RESULT:
Thus the above program has successfully executed.
Ex.No:
Date:
CONCATENATION OF TWO STRINGS

AIM:
Create a c program to concatenate two strings.

PROCEDURE:

STEP 1: Start the program

STEP 2: Declare the variables

STEP 3: Get the input of 5 elements into an array and print the elements of the array

STEP 4: Check whether a array was printed which user given.

STEP 5: Display the program

STEP 6: Stop the program

SOURCE CODING:
OUTPUT:

RESULT:
Thus the above program has successfully executed.
Ex.No:
Date:

COMPARE TWO STRINGS WITHOUT USING


STRING LIBRARY FUNCTIONS

AIM:

Create a c program to compare two strings without using string library functions.

PROCEDURE:

STEP 1: Start the program

STEP 2: Declare the variables

STEP 3: Get the input of two string from the user

STEP 4: Check whether a two strings without using string library functions

STEP 5: Display the program

STEP 6: Stop the program

SOURCE CODING:
OUTPUT:

RESULT:
Thus the above program has successfully executed
Ex.No:
Date:

FIBONACCI SERIES USING RECURSIVE FUNCTION

AIM:
Create a c program to generate Fibonacci series using recursive function.

PROCEDURE:

STEP 1: Start the program

STEP 2: Declare the variables

STEP 3: Get the input from the user

STEP 4: Check whether a series are correct or wrong.

STEP 5: Display the program

STEP 6: Stop the program

SOURCE CODING:
OUTPUT:

RESULT:
Thus the above program has successfully executed.
ExNo:
Date:
FIND POWER OF ANY NUMBER USING RECURSION
AIM:
Create a c program to find power of any number using recursion.

PROCEDURE:

STEP 1: Start the program

STEP 2: Declare the variables

STEP 3: Get the input of X and Y from the user

STEP 4: Check whether to find power of any number using recursion

STEP 5: Display the program

STEP 6: Stop the program

SOURCE CODING:
OUTPUT:

RESULT:
Thus the above program has successfully executed.
Ex.No:
Date:
USER DEFINED FUNCTION
AIM:
Create a c program to add, subtract, multiply and divide two integers using user defined type function with
return type.

PROCEDURE:

STEP 1: Start the program

STEP 2: Declare the variables

STEP 3: Get the input of two integers from the user


STEP 4: Check whether two integers user defined function of add, subtract, multiply and divide
operation

STEP 5: Display the program

STEP 6: Stop the program


SOURCE CODING:
OUTPUT:

RESULT:
Thus the above program has successfully executed
Ex.No:
Date:

CALL BY VALUE AND VALUE BY REFERENCE

AIM:
Create a c program to swap two integer using call by value and call by Reference methods of passing
Arguments to a function

PROCEDURE:

STEP 1: Start the program

STEP 2: Declare the variables

STEP 3: Get the input of two integers A &B from the user
STEP 4: Check whether swap two integer using call by value and call by Reference methods of
passing Arguments to a function

STEP 5: Display the program

STEP 6: Stop the program


SOURCE CODING:
OUTPUT:

RESULT:

Thus the above program has successfully executed.


Exno:
Date:

FINDING THE BIGGEST NUMBER USING POINTERS

AIM:
Create a c program to find biggest among three numbers using pointer.

PROCEDURE:

STEP 1: Start the program

STEP 2: Declare the variables

STEP 3: Get the input of three integer from the user

STEP 4: Check whether is biggest among three numbers using pointer

STEP 5: Display the program

STEP 6: Stop the program

SOURCE CODING:
OUTPUT:

RESULT:

Thus the above program has successfully executed


Ex.No:
Date:

COMPARE TWO STRINGS USING POINTERS


AIM:
Create a c program to compare two strings using pointers

PROCEDURE:

STEP 1: Start the program

STEP 2: Declare the variables

STEP 3: Get the input of two strings from the user

STEP 4: Check whether is the two strings is equal or unequal.

STEP 5: Display the program

STEP 6: Stop the program

SOURCE CODING:
OUTPUT:

RESULT
Thus the above program has successfully executed
Ex.No:
Date:
STUDENT MARKLIST USING STUCTURE

AIM: Create a c program to create, declare and initialize structure.

PROCEDURE:

STEP 1: Start the program

STEP 2: Declare the variables

STEP 3: Get the input such as roll no name department marks

STEP 4:Check whether is the two strings is equal or unequal.

STEP 5: Display the program

STEP 6: Stop the program

SOURCE CODING:
OUTPUT:

RESULT:
Thus the above program has successfully executed.
Ex.No:
Date:
UNION

AIM Create a c program to declare, initialize an UNION.

PROCEDURE:

STEP 1: Start the program

STEP 2: Declare the variables

STEP 3: Check whether is the union values are assign the values such as int x; float y; char z.

STEP 4: Display the program

STEP 5: Stop the program

SOURCE CODING:
OUTPUT:

RESULT:

Thus the above program has successfully executed


ExNo:
Date:
EMPLOYEE PAYROLL USING FILES
AIM:
Create a c program to create a file called emp.txt and store information about a person ,in terms of his
name, age and salary.

PROCEDURE:

STEP 1: Start the program

STEP 2: Declare the variables

STEP 3: Get the input such as name, age, salary

STEP 4: Check whether is the file is created

STEP 5: Display the program

STEP 6: Stop the program


SOURCE CODING:
OUTPUT:

Open the file with notepad.

RESULT:
Thus the above program has successfully executed
Ex.No:
Date:
LIST ALL FILES AND SUB-DIRECTORIES IN A DIRECTORY
AIM:

Create a c program to list all files and sub-directories in a directory.

PROCEDURE:

STEP 1: Start the program

STEP 2: Declare the variables

STEP 4: Check whether is the opendir() is function open or not

STEP 5: Display the program

STEP 6: Stop the program

SOURCE CODING:
OUTPUT:

RESULT:

Thus the above program has successfully executed.

You might also like