SlideShare a Scribd company logo
1 of 15
RATHINAM COLLEGE OF ARTS AND SCIENCE
(AUTONOMOUS)
Eachanari, Coimbatore-21
Laboratory Manual
Degree & Branch B.Sc. (CTIS) B.Sc. IT (DS) & BCA (AI)
Course Code
Course Title Programming in C
Index
S.No Date Topic Name
Page
Number
Marks
(20)
PART A
1 Printing the Reverse of a Number
2 Printing the Odd and Even Series of a N Numbers
3 Get a string and convert the lowercase to uppercase
and vice--versa using getchar() and putchar().
4 Input a string and find the number of each of the
vowels appear in the string.
5 Printing the reverse of a string
6 Accept N words and make it as a sentence by inserting
blank spaces and a full stop at the end.
PART B
1 Searching an element in an array using pointers
2
Checking whether the given matrix is an identity
matrix or not
3
Finding the first N terms of Fibonacci series
4
Declare 3 pointer variables to store a character, a
character string and an integer respectively.
Input values into these variables. Display the address
and the contents of each variable
5
Define a structure with three members and display the
same
6
Declare a union with three members of type integer,
char, string and illustrate the use of union
7
Recursive program to find the factorial of an integer
8
Finding the maximum of 4 numbers by defining a
macro for the maximum of two numbers
9
Arranging N numbers in ascending and in descending
order using bubble sort.
S.No Date Topic Name
Page
Number
Marks
(20)
10
Addition and subtraction of two matrices
11
Multiplication of two matrices
12
Converting a hexadecimal number into its binary
equivalent.
13
Check whether the given string is a palindrome or not.
14
Demonstration of bitwise operations
15
Applying binary search to a set of N numbers by using
a function
16
Create a sequential file with three fields: empno,
empname, empbasic. Print all the details in a
neat format by adding 500 to their basic salary
Average Marks
Write a C Program to print Reverse of a given number
AIM:
Write a C Program to print Reverse of a given number
ALGORITHM:
1. Start the program
2. Ask the user to enter any number.
3. Declare and initialize another variable reversed with 0, where reversed an integer
variable.
4. Get the last digit of the given number by performing the modulo division (%) and
store the value in last_digit variable, likey last_digit= number % 10.
5. Multiply reversed by 10 and add last_digit, like reversed = reversed*10 + last_digit.
6. Divide numbered by 10, like numbered/10.
7. Repeat the steps 3 to 5 till numbered is not equal to (or greater than) zero.
8. Stop the program
PROGRAM:
RESULT:
Thus, a C Program for performing reversal of a number is completed and run
successfully
Write a C Program to Print the Odd and Even Series of a N Numbers
AIM:
Write a C Program to Print the Odd and Even Series of a N Numbers
ALGORITHM:
Step 1: Start
Step 2: [ Take Input ] Read: Number
Step 3: Check: If Number%2 == 0 Then
Print : N is an Even Number.
Else
Print : N is an Odd Number.
Step 4: Exit
PROGRAM:
RESULT:
Thus, a C Program for printing the odd and even series of a N numbers is completed
and run successfully
Write a C Program to get a string and convert the lowercase to uppercase and vice--versa
using getchar() and putchar().
AIM:
Write a C Program to get a string and convert the lowercase to uppercase and vice--
versa using getchar() and putchar().
ALGORITHM:
Step 1: Start the program
Step 2: Read char size of array str[15] and int i
Step 3: Specify the condition for while loop
Step 4: If string is capital
print str[i]+32
Else
Print s[i]-32
Step 5: increment the character i++
Step 6: print the string
Step 7: Exit the program
PROGRAM:
RESULT:
Thus, a C Program for getting a string and convert the lowercase to uppercase and vice--
versa using getchar() and putchar().s completed and run successfully
Write a C Program to input a string and find the number of each of the vowels appear in the
string.
AIM:
Write a C Program to input a string and find the number of each of the vowels appear in the
string.
ALGORITHM:
1. Start the program
2. set the count to 0
3. Loop through the string until it reaches a null character.
4. Compare each character to the vowels a, e, i o, and u.
5. If both are equal
6. Increase the count by one.
7. Print the count at the end.
8. Stop the program
RESULT:
Thus, a C Program for input a string and find the number of each of the vowels appear
in the string.is completed and run successfully
Write a C Program to Printing the reverse of a string
AIM:
Write a C Program to Printing the reverse of a string
ALGORITHM:
1. Start the program
2. Declare all the variables ( integer and character type )
3. Enter the string to be reversed
4. Find out the length of string
5. Swap the position of array element using loop
6. Store the swapped position
7. Print the reversed string as console output
8. Stop the program
PROGRAM:
RESULT:
Thus, a C Program for performing reversal of a string is completed and run
successfully
Write a C Program to accept N words and make it as a sentence by inserting blank spaces and a
full stop at the end.
AIM:
Write a C Program to accept N words and make it as a sentence by inserting blank spaces and a
full stop at the end.
ALGORITHM:
PROGRAM:
RESULT:
Thus, a C Program for accept N words and make it as a sentence by inserting blank
spaces and a full stop at the end is completed and run successfully

More Related Content

Similar to C_Lab Manual_Part A.docx

Important C program of Balagurusamy Book
Important C program of Balagurusamy BookImportant C program of Balagurusamy Book
Important C program of Balagurusamy BookAbir Hossain
 
best notes in c language
best notes in c languagebest notes in c language
best notes in c languageIndia
 
Oop lab assignment 01
Oop lab assignment 01Oop lab assignment 01
Oop lab assignment 01Drjilesh
 
Chapter 8Exercise1.Design an application that accept.docx
Chapter 8Exercise1.Design an application that accept.docxChapter 8Exercise1.Design an application that accept.docx
Chapter 8Exercise1.Design an application that accept.docxtiffanyd4
 
CS291(C Programming) assignment
CS291(C Programming) assignmentCS291(C Programming) assignment
CS291(C Programming) assignmentKuntal Bhowmick
 
csharp repitition structures
csharp repitition structurescsharp repitition structures
csharp repitition structuresMicheal Ogundero
 
C and Data structure lab manual ECE (2).pdf
C and Data structure lab manual ECE (2).pdfC and Data structure lab manual ECE (2).pdf
C and Data structure lab manual ECE (2).pdfjanakim15
 
C programming language
C programming languageC programming language
C programming languageAbin Rimal
 
Programming in C Lab
Programming in C LabProgramming in C Lab
Programming in C LabNeil Mathew
 

Similar to C_Lab Manual_Part A.docx (20)

c programing
c programingc programing
c programing
 
Cp manual final
Cp manual finalCp manual final
Cp manual final
 
Important C program of Balagurusamy Book
Important C program of Balagurusamy BookImportant C program of Balagurusamy Book
Important C program of Balagurusamy Book
 
Programming Practice Questions_C
Programming Practice Questions_CProgramming Practice Questions_C
Programming Practice Questions_C
 
best notes in c language
best notes in c languagebest notes in c language
best notes in c language
 
Mmt 001
Mmt 001Mmt 001
Mmt 001
 
Oop lab assignment 01
Oop lab assignment 01Oop lab assignment 01
Oop lab assignment 01
 
C programming
C programmingC programming
C programming
 
C activities
C activitiesC activities
C activities
 
Chapter 8Exercise1.Design an application that accept.docx
Chapter 8Exercise1.Design an application that accept.docxChapter 8Exercise1.Design an application that accept.docx
Chapter 8Exercise1.Design an application that accept.docx
 
I PUC CS Lab_programs
I PUC CS Lab_programsI PUC CS Lab_programs
I PUC CS Lab_programs
 
Java programlist (1)
Java programlist (1)Java programlist (1)
Java programlist (1)
 
CS291(C Programming) assignment
CS291(C Programming) assignmentCS291(C Programming) assignment
CS291(C Programming) assignment
 
Programming questions
Programming questionsProgramming questions
Programming questions
 
Unit-IV.pptx
Unit-IV.pptxUnit-IV.pptx
Unit-IV.pptx
 
csharp repitition structures
csharp repitition structurescsharp repitition structures
csharp repitition structures
 
C and Data structure lab manual ECE (2).pdf
C and Data structure lab manual ECE (2).pdfC and Data structure lab manual ECE (2).pdf
C and Data structure lab manual ECE (2).pdf
 
C Programming
C ProgrammingC Programming
C Programming
 
C programming language
C programming languageC programming language
C programming language
 
Programming in C Lab
Programming in C LabProgramming in C Lab
Programming in C Lab
 

More from Pandiya Rajan

More from Pandiya Rajan (20)

CICD.pptx
CICD.pptxCICD.pptx
CICD.pptx
 
HTML-Advance.pptx
HTML-Advance.pptxHTML-Advance.pptx
HTML-Advance.pptx
 
css1.pptx
css1.pptxcss1.pptx
css1.pptx
 
HTML-Basic.pptx
HTML-Basic.pptxHTML-Basic.pptx
HTML-Basic.pptx
 
UNIT-I Introduction to CICD.pptx
UNIT-I Introduction to CICD.pptxUNIT-I Introduction to CICD.pptx
UNIT-I Introduction to CICD.pptx
 
UNIT-I Introduction to Ansible.pptx
UNIT-I Introduction to Ansible.pptxUNIT-I Introduction to Ansible.pptx
UNIT-I Introduction to Ansible.pptx
 
UNIT-I Introduction to CICD.pptx
UNIT-I Introduction to CICD.pptxUNIT-I Introduction to CICD.pptx
UNIT-I Introduction to CICD.pptx
 
page_fault pbm.ppt
page_fault pbm.pptpage_fault pbm.ppt
page_fault pbm.ppt
 
process syn.ppt
process syn.pptprocess syn.ppt
process syn.ppt
 
Selenium.pptx
Selenium.pptxSelenium.pptx
Selenium.pptx
 
selinuxbasicusage.pptx
selinuxbasicusage.pptxselinuxbasicusage.pptx
selinuxbasicusage.pptx
 
lvm.pptx
lvm.pptxlvm.pptx
lvm.pptx
 
SSH.ppt
SSH.pptSSH.ppt
SSH.ppt
 
environmentalpollution-.pptx
environmentalpollution-.pptxenvironmentalpollution-.pptx
environmentalpollution-.pptx
 
DM.pptx
DM.pptxDM.pptx
DM.pptx
 
thermal pollution.pptx
thermal pollution.pptxthermal pollution.pptx
thermal pollution.pptx
 
marinepollution.pptx
marinepollution.pptxmarinepollution.pptx
marinepollution.pptx
 
logical volume manager.ppt
logical volume manager.pptlogical volume manager.ppt
logical volume manager.ppt
 
Presentation1.pptx
Presentation1.pptxPresentation1.pptx
Presentation1.pptx
 
c-c++-java-python programs.docx
c-c++-java-python programs.docxc-c++-java-python programs.docx
c-c++-java-python programs.docx
 

Recently uploaded

High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSCAESB
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2RajaP95
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxvipinkmenon1
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfAsst.prof M.Gokilavani
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidNikhilNagaraju
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfAsst.prof M.Gokilavani
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineeringmalavadedarshan25
 

Recently uploaded (20)

High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptx
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfid
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineering
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 

C_Lab Manual_Part A.docx

  • 1. RATHINAM COLLEGE OF ARTS AND SCIENCE (AUTONOMOUS) Eachanari, Coimbatore-21 Laboratory Manual Degree & Branch B.Sc. (CTIS) B.Sc. IT (DS) & BCA (AI) Course Code Course Title Programming in C
  • 2. Index S.No Date Topic Name Page Number Marks (20) PART A 1 Printing the Reverse of a Number 2 Printing the Odd and Even Series of a N Numbers 3 Get a string and convert the lowercase to uppercase and vice--versa using getchar() and putchar(). 4 Input a string and find the number of each of the vowels appear in the string. 5 Printing the reverse of a string 6 Accept N words and make it as a sentence by inserting blank spaces and a full stop at the end. PART B 1 Searching an element in an array using pointers 2 Checking whether the given matrix is an identity matrix or not 3 Finding the first N terms of Fibonacci series 4 Declare 3 pointer variables to store a character, a character string and an integer respectively. Input values into these variables. Display the address and the contents of each variable 5 Define a structure with three members and display the same 6 Declare a union with three members of type integer, char, string and illustrate the use of union 7 Recursive program to find the factorial of an integer 8 Finding the maximum of 4 numbers by defining a macro for the maximum of two numbers 9 Arranging N numbers in ascending and in descending order using bubble sort.
  • 3. S.No Date Topic Name Page Number Marks (20) 10 Addition and subtraction of two matrices 11 Multiplication of two matrices 12 Converting a hexadecimal number into its binary equivalent. 13 Check whether the given string is a palindrome or not. 14 Demonstration of bitwise operations 15 Applying binary search to a set of N numbers by using a function 16 Create a sequential file with three fields: empno, empname, empbasic. Print all the details in a neat format by adding 500 to their basic salary Average Marks
  • 4. Write a C Program to print Reverse of a given number AIM: Write a C Program to print Reverse of a given number ALGORITHM: 1. Start the program 2. Ask the user to enter any number. 3. Declare and initialize another variable reversed with 0, where reversed an integer variable. 4. Get the last digit of the given number by performing the modulo division (%) and store the value in last_digit variable, likey last_digit= number % 10. 5. Multiply reversed by 10 and add last_digit, like reversed = reversed*10 + last_digit. 6. Divide numbered by 10, like numbered/10. 7. Repeat the steps 3 to 5 till numbered is not equal to (or greater than) zero. 8. Stop the program
  • 5. PROGRAM: RESULT: Thus, a C Program for performing reversal of a number is completed and run successfully
  • 6. Write a C Program to Print the Odd and Even Series of a N Numbers AIM: Write a C Program to Print the Odd and Even Series of a N Numbers ALGORITHM: Step 1: Start Step 2: [ Take Input ] Read: Number Step 3: Check: If Number%2 == 0 Then Print : N is an Even Number. Else Print : N is an Odd Number. Step 4: Exit
  • 7. PROGRAM: RESULT: Thus, a C Program for printing the odd and even series of a N numbers is completed and run successfully
  • 8. Write a C Program to get a string and convert the lowercase to uppercase and vice--versa using getchar() and putchar(). AIM: Write a C Program to get a string and convert the lowercase to uppercase and vice-- versa using getchar() and putchar(). ALGORITHM: Step 1: Start the program Step 2: Read char size of array str[15] and int i Step 3: Specify the condition for while loop Step 4: If string is capital print str[i]+32 Else Print s[i]-32 Step 5: increment the character i++ Step 6: print the string Step 7: Exit the program
  • 9. PROGRAM: RESULT: Thus, a C Program for getting a string and convert the lowercase to uppercase and vice-- versa using getchar() and putchar().s completed and run successfully
  • 10. Write a C Program to input a string and find the number of each of the vowels appear in the string. AIM: Write a C Program to input a string and find the number of each of the vowels appear in the string. ALGORITHM: 1. Start the program 2. set the count to 0 3. Loop through the string until it reaches a null character. 4. Compare each character to the vowels a, e, i o, and u. 5. If both are equal 6. Increase the count by one. 7. Print the count at the end. 8. Stop the program
  • 11. RESULT: Thus, a C Program for input a string and find the number of each of the vowels appear in the string.is completed and run successfully
  • 12. Write a C Program to Printing the reverse of a string AIM: Write a C Program to Printing the reverse of a string ALGORITHM: 1. Start the program 2. Declare all the variables ( integer and character type ) 3. Enter the string to be reversed 4. Find out the length of string 5. Swap the position of array element using loop 6. Store the swapped position 7. Print the reversed string as console output 8. Stop the program
  • 13. PROGRAM: RESULT: Thus, a C Program for performing reversal of a string is completed and run successfully
  • 14. Write a C Program to accept N words and make it as a sentence by inserting blank spaces and a full stop at the end. AIM: Write a C Program to accept N words and make it as a sentence by inserting blank spaces and a full stop at the end. ALGORITHM:
  • 15. PROGRAM: RESULT: Thus, a C Program for accept N words and make it as a sentence by inserting blank spaces and a full stop at the end is completed and run successfully