The document outlines a series of programming assignments in C, including tasks such as checking if a number is positive, finding the sum of digits, and generating a multiplication table. Additional assignments involve working with matrices, recursion, and file handling. The tasks are designed to enhance programming skills through practical applications of C language concepts.
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 ratings0% found this document useful (0 votes)
4 views1 page
Assignment 2
The document outlines a series of programming assignments in C, including tasks such as checking if a number is positive, finding the sum of digits, and generating a multiplication table. Additional assignments involve working with matrices, recursion, and file handling. The tasks are designed to enhance programming skills through practical applications of C language concepts.
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/ 1
Assignment 2
• Write C program to check whether a number is positive or negative or zero using
switch statement • Write C program to find sum of digits of a number. • Write C program to check if an integer is prime or not. • Write C program to generate multiplication table. • Write C program to print even elements of matrix (2-D Array) • Write C program to print prime elements present in matrix • Write a c program for Transpose of Matrix (2-D Array). • Write a c program to print diagonal elements of matrix. • Write a c program using user defined function. to print Fibonacci series. • Write a c program to find factorial of number using recursion. • Write a C program to determine whether a given word is a palindrome or not. • Write a C program to print odd elements present in an array using pointer. • Assuming a file named as “data.txt” has some text stored in it. Implement a C program to count the number of characters in the text.