Skip to content

MyUstaadG

Learn to Serve

  • Computer Science
    • Software
    • Computer Tips
    • Coding
      • Conditional Structures Exercises
      • Loops Exercises
      • Arrays Exercises
      • Python Exercises
    • Microsoft Office
      • MS Excel
      • MS Word
  • Videos
    • Funny Videos
    • Health and Fitness Videos
    • PUBG Videos
    • Technology Videos
  • News
  • Funny
  • Memes
  • Playwright Tutorials
  • Tutorials
  • Toggle search form

Tag: Program to print Sum of even and odd elements in an array

Write a program that uses three one-dimensional arrays and inputs 20 values in 1st array and differentiates even and odd values.

Posted on October 26, 2021 By myustaadg.com

Write a program that uses three one-dimensional arrays and inputs 20 values in 1st array and differentiates even and odd values. It stores even values in 2nd array and odd values into 3rd array. The program should display the values of 2nd and 3rd array into two columns with heading EVEN and ODD. So let’s…

Read More “Write a program that uses three one-dimensional arrays and inputs 20 values in 1st array and differentiates even and odd values.” »

Arrays Exercises, Programming Exercises

Write a program that initializes the values in the one-dimensional array and computes the sum of even values.

Posted on October 16, 2021 By myustaadg.com

Write a program that initializes the values in one-dimensional array and computes the sum of even values assigned to the array. It also displays even values and their sum on the screen. So let’s Write Code: Let’s build logic First: Algorithm for code: Step 1: Start Step 2: Declare an array and variable i, sum….

Read More “Write a program that initializes the values in the one-dimensional array and computes the sum of even values.” »

Arrays Exercises, Programming Exercises

Copyright © 2022 MyUstaadG.

Powered by PressBook Blog WordPress theme