Question: Given a first (long long) integer (Y) representing the data to analyze and alter in this program, then a second integer (X) corresponding to the
Given a first (long long) integer (Y) representing the data to analyze and alter in this program, then a second integer (X) corresponding to the size of a number to extract from the first integer Y, identify the largest value in Y composed of X consecutive and adjacent digits. Divide this largest value by two, round it to the nearest whole number, and replace it into the number Y. Your program will need to validate that the first integer is positive and the second integer is both positive and not greater than the number of digits in the first input. Do this in C


Problem: Given a first (long long) integer (Y) representing the data to analyze and alter in this program, then a second integer (X) corresponding to the size of a number to extract from the first integer Y, identify the largest value in Y composed of X consecutive and adjacent digits. Divide this largest value by two, round it to the nearest whole number, and replace it into the number Y. Your program will need to validate that the first integer is positive and the second integer is both positive and not greater than the number of digits in the first input
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
