0% found this document useful (0 votes)
67 views3 pages

Complete Program From 1 To 90

The document outlines a comprehensive list of programming tasks and exercises related to C programming, covering topics such as data types, variables, operators, conditional statements, loops, arrays, strings, and searching algorithms. Each section includes specific programming challenges, such as printing outputs, performing calculations, and manipulating data structures. The document serves as a curriculum guide for students in the Department of Artificial Intelligence and Data Science.

Uploaded by

mathsforlife969
Copyright
© © All Rights Reserved
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% found this document useful (0 votes)
67 views3 pages

Complete Program From 1 To 90

The document outlines a comprehensive list of programming tasks and exercises related to C programming, covering topics such as data types, variables, operators, conditional statements, loops, arrays, strings, and searching algorithms. Each section includes specific programming challenges, such as printing outputs, performing calculations, and manipulating data structures. The document serves as a curriculum guide for students in the Department of Artificial Intelligence and Data Science.

Uploaded by

mathsforlife969
Copyright
© © All Rights Reserved
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/ 3

Department of Artificial Intelligence and Data Science

NAME : REG.NO ::

Sl.No TOPIC SIGN


Printf
1 Print (Hello world!)
2 Print the student name
Datatypes and Format Specifiers
3 Get a Float value from user and print it as output
4 Get 3 integer numbers from user and display
5 Get a character from user and print it as output
6 Get a name(char array) from user and print it as output
7 Get a double value from user and print it as output
8 Get a long value from user and print it as output
9 Get a signed value from user and print it as output
10 Get a unsigned short int value from user and print it as output
11 Get a unsigned long int value from user and print it as output
Variables and Scanf, Printf,Assignment statement
12 Write a program to find area and perimeter of square, rectangle and triangle
13 Write a program to find area, circumference of a circle.
14 Write a program to accept three numbers from users and perform addition,
product and average of three numbers.
15 Write a program to read roll number , name , 5 subject marks of a student and
print total and average.
16 Write a program to calculate (a+b)2 and (a-b)2
17 Write a program to convert centigrade to Fahrenheit and vice - versa
18 Write a program to swap 2 numbers using third variable
19 Write a program to swap 2 numbers without using third variable
20 Write a program to calculate simple and compound interest.
21 Write a program to input employee number, employee name, basic salary ,DA,TA
and deduct 15 % IT from basic salary and compute gross pay and net pay.`
22 Write a program to accept a 4 digit number [1234] and display the number
separately as 1, 2,3,4.
Operators
23 Program with Unary operator ++ post increment, pre increment
24 Program with Unary operator -- , post decrement , pre decrement
25 Program with Binary Operators(Addition, Subtraction, Multiplication, Division,
Modulus)
26 Write a program to find greatest and smallest among three numbers using
conditional operator
27 Write a program to accept a number and perform bitwise left shift and right shift
operation.
Write a C program to swap two numbers using bitwise operators in c
28 Write a program to convert float value to integer with implicit type conversion
29 Write a program to convert float value to integer with explicit type conversion
30 Write a program to convert float value to char with explicit type conversion
Conditional Statements
31 Write a program to get age from user and check the age value is eligible to vote
32 Write a program to check whether a number is even or odd using if- else
33 Write a program to check whether Two numbers are equal (Relational Operator)
34 Write a program to check the largest among two numbers (if –else)
35 Write a program to check the largest among three numbers (if and logical
operators)
36 Write a program to check the largest among three numbers (nested if )
37 To get an age and check whether is he/she eligible to vote
38 To check whether a year is leap or not(if else ladder)
39 Write a program to assign Grade using else if or ladder if
40 Write a program to assign Grade using switch case.
41 Calculator program using else if or ladder if
42 Calculator program using switch
43 To check whether a character is vowel or not(switch case)
44 Write a program to withdraw a certain amount from user account.
Loops
45 Printing from 1 to 100 using for, while, do-while
46 Print the even numbers in a specific range N using for, while, do-while
47 Write a program to Print sum of odd numbers of range N using for, while, do-
while
48 Write a program to print Sum of numbers within a specific range N using for,
while, do-while
49 Write a program to print Sum of squares within a specific range N using for,
while, do-while
50 Write a program in C to display the sum of cube within a specific range N using
for, while, do-while
Programs
51 Write a program to find factorial of a number N
52 Write a program to generate N Fibonacci series
53 Write a program to generate prime numbers within a range N
54 Write a program to check a number is composite or prime number.
55 Write a program to check a number is Armstrong number or not
56 Write a C Program check whether a given number is perfect number or not.
57 Write a program to accept a 5 digit number from user and perform Sum of 5 digits
58 Write a program to Reverse a Number
59 HCF and LCM of two numbers
60 Square root of a number
61 Count the number of digits in a number
62 Write a program to convert binary number to decimal
63 Write a program to convert decimal number to binary
64 Write a program to find the roots of a quadratic equation using if-else
65 Write a C program to display the following patterns

Arrays
66 To get 10 numbers from the user and print the odd and even numbers
67 To input 10 numbers from the user and print the largest number
68 To input 10 numbers from the user and print the smallest number
69 Write a program in C to copy the elements of one array into another array
70 Write a program in C to merge two arrays of same size
71 To input N numbers from the user and print the sum of all elements in array
72 To input a 2 dimensional array and print it in the matrix format
73 Matrix addition
74 Matrix subtraction
75 Matrix multiplication
76 Program to find transpose of a matrix
Strings
77 To find the length of a String without string function
78 To concatenate two strings without string function
79 To reverse a string without string function
80 Strlen, strcpy, strcat, strrev
81 Write a C program to find the ASCII value of a character or a string.
82 Program to sort N names
83 Program to count number of vowels in a string
84 Program to check a string is palindrome or not
85 Program to remove all characters in a string except alphabet

Searching
86 To input N numbers from the user and search an element -Linear Search
87 To input N numbers from the user and search an element -Binary Search
88 Bubble sort
89 Selection sort
90 Insertion sort

You might also like