25% found this document useful (4 votes)
1K views2 pages

Typical Input: 28 2 1992 Typical Output: Date Following 28:02:1992 Is 29:02:1992

This document contains 12 sections with multiple parts each that provide C programming problems to solve. The problems cover a wide range of programming concepts like checking if a number is Armstrong, storing and printing array elements, finding digit sums, solving quadratic equations, generating numbers based on conditions, calculating dates, using switch statements, calculating marks totals and averages, assigning weights and sorting numbers, converting between number bases, matrix operations, finding min/max in arrays, sorting arrays, calculating differences and averages, swapping values, transposing matrices, checking for prime numbers, populating and calculating BMI from 2D arrays, and string operations. The problems provided are meant to help develop and demonstrate C programming skills.

Uploaded by

Surya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
25% found this document useful (4 votes)
1K views2 pages

Typical Input: 28 2 1992 Typical Output: Date Following 28:02:1992 Is 29:02:1992

This document contains 12 sections with multiple parts each that provide C programming problems to solve. The problems cover a wide range of programming concepts like checking if a number is Armstrong, storing and printing array elements, finding digit sums, solving quadratic equations, generating numbers based on conditions, calculating dates, using switch statements, calculating marks totals and averages, assigning weights and sorting numbers, converting between number bases, matrix operations, finding min/max in arrays, sorting arrays, calculating differences and averages, swapping values, transposing matrices, checking for prime numbers, populating and calculating BMI from 2D arrays, and string operations. The problems provided are meant to help develop and demonstrate C programming skills.

Uploaded by

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

1 Write and execute a C program to check whether the given number is an Armstrong

(a) number or not.

Develop and execute a ‘C’ program to store ‘N’ numbers in an array and print the
(b)
numbers that are divisible by five with the array location.
2 Develop and execute a ‘C’ program to find the sum of the digits of a given number
(a) using while statement.

(b) Write and execute a C Program to find the roots of the quadratic equation.
3 Write and execute a C program to generate numbers between 1 and 100 which are
(a) divisible by 2 and are not divisible by 3 and 5.

Write and execute a program which takes three integers as input representing a date as
day, month, year, and print out the number day, month and year for the following day’s
(b) date.
Typical input: 28 2 1992
Typical output: Date following 28:02:1992 is 29:02:1992
4 Write and execute a program in C to display the name of the day, depending upon the
(a) number entered from the keyboard using switch statement.

Write and execute a C program to calculate and display the total and average of N
(b) student marks .

5 Given a set of numbers, write and execute a c program to find the sum of weights based
on the following conditions.
 5 if it is a perfect cube.
(a)
 4 if it is a multiple of 4 and divisible by 6.
 3 if it is a prime number.
Sort the numbers based on the weight in the increasing order
Write and execute a C program to convert the given decimal number into binary number
(b)
using user defined function.
6 (a) Write and execute a C program for Matrix subtraction using two dimensional arrays.
Write and execute a C program to convert the given decimal number into octal number
(b) using user defined function.

7 (a) Write and execute a C program to find the min and max number in an array.
Write and execute a C program to convert the given decimal number into hexadecimal
(b) number using user defined function.

8 (a) Write and execute a C program for sorting an array of N data in Ascending order.
(b) Write and execute a C program for Matrix addition using two dimensional arrays.
9 Write and execute a C program that accepts 4 real numbers from the keyboard and prints
(a)
out the difference of the maximum and minimum values of these numbers.
Write and execute a C program to populate an array with height of persons and find
(b)
how many persons are above the average height.
10 (a) Write and execute a C program to swap two number using pass by value and references.
Write and execute a C program to print the Transpose of a Matrix.
(b)
11 (a) Write and execute a C Program to find whether a given number is a prime number.
Write and execute a C program to populate a two dimensional array with height and
(b)
weight of persons and compute the Body Mass Index of the individuals.
12 Write and execute a C program for finding String Length, String Concatenation,
(a)
String Comparison and String Copy using Library function
Write and execute a C program to sort the given names in alphabetical order.
INTERNAL EXAMINER EXTERNAL EXAMINER

You might also like