Question: Write a C program that will ask the user to enter a string. Store the string in a Char array and create a function
Write a C program that will ask the user to enter a string. Store the string in a Char array and create a function that will iterate through the string and keep count of the number of vowels and consonants. Finally, using "printf" display the number of vowels and the number of consonants that were found in the word. Your second C program will ask the user the enter an integer and print the prime factors of that integer (2, 3, 5, 7, etc). For example, if the user enter the integer 24, your program will print out "the prime factors of the number 24 are: 2 x2x2x3 Write a C program that will ask the user to enter a string. Store the string in a Char array and create a function that will iterate through the string and keep count of the number of vowels and consonants. Finally, using "printf" display the number of vowels and the number of consonants that were found in the word. Your second C program will ask the user the enter an integer and print the prime factors of that integer (2, 3, 5, 7, etc). For example, if the user enter the integer 24, your program will print out "the prime factors of the number 24 are: 2 x2x2x3
Step by Step Solution
There are 3 Steps involved in it
Certainly To tackle these assignments well create two separate C programs Lets start with the first ... View full answer
Get step-by-step solutions from verified subject matter experts
