This document lists 20 experiments for an Introduction to Programming course in C. The experiments include writing programs to calculate simple and compound interest, swap numbers with and without a third variable, find the largest of three numbers, check if a string is a palindrome, convert strings between uppercase and lowercase, calculate totals using array structures, calculate sums and averages, find string lengths using pointers, increase a variable by 5 using pointers, swap values with a macro, calculate digit sums and reverse numbers, print numbers as words with a switch, calculate factorials recursively and non-recursively, sort names alphabetically, remove substrings, read arrays with pointers, reverse strings and numbers with pointers, print abbreviations, copy files, and print command line arguments
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 ratings0% found this document useful (0 votes)
26 views
Experiment List For Introduction To Programming
This document lists 20 experiments for an Introduction to Programming course in C. The experiments include writing programs to calculate simple and compound interest, swap numbers with and without a third variable, find the largest of three numbers, check if a string is a palindrome, convert strings between uppercase and lowercase, calculate totals using array structures, calculate sums and averages, find string lengths using pointers, increase a variable by 5 using pointers, swap values with a macro, calculate digit sums and reverse numbers, print numbers as words with a switch, calculate factorials recursively and non-recursively, sort names alphabetically, remove substrings, read arrays with pointers, reverse strings and numbers with pointers, print abbreviations, copy files, and print command line arguments
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
Experiment List for Introduction To Programming
1. To write a C program to calculate simple and compound interest.
2. To write a C program to calculate swap two numbers i) Using third variable ii) Without using third variable 3. To write a c program to find the largest of the given three numbers. 4. To write a c program to check that given string is palindrome or not. 5. To write a c program to convert the string in uppercase to lowercase and vice versa. 6. To write a c program to calculate total marks using array of structures. 7. To write a c program to calculate sum and average of given three numbers. 8. To write a c program to find the length of the string using pointers. 9. To write a c program to find the address of a variable and increase the content by 5 and print the new value. 10.To write a macro to swap two data values. 11.To write a C program to calculate Sum of all individual digits and also print the above number in reverse order. 12.To write a C program to print the given number into equivalent Word using switch statement. 13.To write a C program to find the factorial of a given number (i)Without recursion (ii)With recursion. 14.To write a C program to arrange the given N names in alphabetical order. 15.To write a C program to remove the substring from the given string. 16.To write a C program to read ten values to an array variable and to locate and display value using pointers. 17.To write a C program to Reverse (i) String (ii) N integer numbers stored in any array using pointers. 18.To write a C program to print the abbreviation of an Organization Name. 19.To write a C program to copy one file into another. 20.To write a C program to print the string arguments in reverse order using command line arguments.