Giter Site home page Giter Site logo

dtu-co102-lab's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.