0% found this document useful (0 votes)
3 views1 page

C PROGRAMMING-1

The document outlines a series of programming tasks in C, including finding the sum of digits in a positive integer, generating Fibonacci sequences, and identifying prime numbers. It also includes tasks for solving quadratic equations, finding the largest and smallest integers in a list, and performing matrix operations. Additional tasks involve string manipulation, complex number operations, and file handling.

Uploaded by

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

C PROGRAMMING-1

The document outlines a series of programming tasks in C, including finding the sum of digits in a positive integer, generating Fibonacci sequences, and identifying prime numbers. It also includes tasks for solving quadratic equations, finding the largest and smallest integers in a list, and performing matrix operations. Additional tasks involve string manipulation, complex number operations, and file handling.

Uploaded by

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

C PROGRAMMING

1. Write a C program to find the sum of individual digits of a positive integer


2. A Fibonacci sequence is defined as follows: the first and second terms in the sequence are 0 and
1. Subsequent terms are found by adding the preceding two terms in the sequence. Write a C
program to generate the first n terms of the sequence.
3. Write a C program to generate all the prime numbers between 1 and n, where n is a value
supplied by the user
4. Write a C program toe find the roots of a quadratic equation
5. Write a C program to find both the largest and smallest number in a list of integers.
6. Write a C program that uses functions to perform the following: i) Addition of Two Matrices ii)
Multiplication of Two Matrices
7. Write a C program that uses functions to perform the following operations: i) To insert a
substring in to given main string from a given position. ii) To delete n Characters from a given
position in a given string.
8. Write a C program to determine if the given string is a palindrome or not
9. Write a C program that uses functions to perform the following operations: i) Reading a
complex number ii) Writing a complex number iii) Addition of two complex numbers iv)
Multiplication of two complex numbers
10. Write a C program which copies one file to another. b) Write a C program to reverse the first n
characters in a file.

You might also like