Example HTML page

Assignment 12: Arrays and loops

Hi,

Today’s Assignment.

—————————————————————————————————————————————–

  1. Write a “C” Program to read six integers using an array and print the elements of an array.
  2. Write a “C” Program to read ‘n’ integers using an array and print all the elements of the array.
  3. Write a “C” Program to find the average marks of a student in six subjects using arrays.
  4. Write a “C” Program to print the Vowels and Consonants of a given string. For example, if the string is “sudhakar” it should display the output as Vowels: u, a, a and Consonants: s,d,h,k,r
  5. Write a “C” Program to print the number of Vowels and Consonants in a given string. For example, if the string is “sudhakar” it should print the number of vowels is 3, and consonants are 5.
  6. Write a “C” Program to find the largest element in the array using for loop.
  7. Write a “C” Program to find the smallest element in the array using while loop.
  8. Write a “C” Program to find the average of the smallest element and largest element in a given array.
  9. write a “C” Program to find the sum of all the elements in an array using for loop.
  10. write a “C” Program to find the product of all the elements in an array using for loop

—————————————————————————————————————————————–

Example HTML page

Leave a Reply

Your email address will not be published. Required fields are marked *

Pin It on Pinterest