Question: Example 15: Draw a flowchart to receive a positive whole number and determine how many of its digits in odd positions are 7. For instance,

 Example 15: Draw a flowchart to receive a positive whole number

Example 15: Draw a flowchart to receive a positive whole number and determine how many of its digits in odd positions are 7. For instance, if the input is 6475672, the output should be 1 because there is only one 7 in an odd position (position 5). As another example, if the input is 12345, the output should be 0. Note: You are not allowed to use any built-in function from any programming language. Also, you are not allowed to use array or treat the input as a string. Instead, you should separate the digits by basic math operations

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!