Skip to content

Delhi Technological University Lab Programs for Programming Fundamentals (First Year)

License

Notifications You must be signed in to change notification settings

dvishal485/dtu-co102-lab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DTU CO101/CO102 Lab File

Delhi Technological University Lab Programs for Programming Fundamentals (First Year) for the course CO101/CO102 submitted by Vishal Das


Lab File


Programs included in the file

  1. Write a C program to print "Hello world" on screen
  2. Write a C program to take input integer from user and add one to that integer and print result
  3. Write a C program to add, subtract, multiplication and division on two integers and print the result and use explicit type casting for division operation
  4. Write a C program to calculate simple interest and print on the screen
  5. Write a C program to perform Logical AND and OR operations on two and three variables
  6. Write a C program to perform bitwise AND and OR operations on two variables
  7. Write a C program to perform relational operations on two variables
  8. Write a C program to compute factorial of a number
  9. Write a C program to compute sum of a 5-digit number
  10. Write a C program to reverse a 5-digit number
  11. Write a C program to find whether the input number is prime or not
  12. Write a program to find area of different shapes using switch case
  13. Write a program to implement following pattern :
    1. Half Pyramid of *
    2. Half Pyramid of numbers
    3. Inverted half pyramid of *
    4. Inverted half pyramid of numbers
    5. Full Pyramid of *
  14. Write a program to convert decimal to binary and vice versa
  15. Program to generate the Fibonacci sequence
  16. Program to search a number from an array using linear search
  17. Program to search a number from an array using binary search
  18. Program to sort an array using Bubble sort
  19. Program to sort an array using Insertion sort
  20. Program to sort an array using Selection sort
  21. Program to check if a given string is a palindrome or not
  22. Program to string concatenation
  23. Program to string comparison
  24. Program to string reverse
  25. Program to convert a string from lower case to upper case and vice versa
  26. Program to find factorial of a number using recursion
  27. Write a C program for the addition of two 3 x 3 matrices
  28. Write a C program to multiply two 3 x 3 matrices
  29. Write a C program to store the employee details using structure
  30. Write a C program to swap two numbers using pointers
  31. Write a C program to pass and return pointer to function hence calculate average of an array.
  32. Write a C program to create a file called emp.txt and store information about a person, in terms of his name, age and salary
  33. Write a C program to read a file and after converting all lower case to upper case letters write it to another file

About

Delhi Technological University Lab Programs for Programming Fundamentals (First Year)

Resources

License

Stars

Watchers

Forks

Languages