Embed presentation
Download to read offline





The document contains code for three C programs: 1) A program to generate the first n terms of the Fibonacci sequence, where the sequence is defined as starting with 0, 1, and each subsequent term is the sum of the previous two terms. 2) A program that takes user input for a number n and prints all prime numbers between 1 and n by checking if each number is divisible by numbers between 1 and itself. 3) A program that takes a positive integer as input, calculates the sum of its individual digits by repeatedly taking the remainder and quotient of the number divided by 10, and prints the final sum.



