Hi Guys,
I am having an issue to prepare a code for the following output in PHP . If anyone has idea how to prepare the code for following output e.g 1st and 2nd Number output will be in range of 0-40000 range of numbers by user input. It will add all integers in first input e.g 9872 will be 9+8+7+2 / 4 so Average 6.50. It will happen till second output number. >= 7 will be printed as heavy number and at end total count heavy numbers.
Enter 1st integer: 9872
Enter 2nd integer: 9884
Number Average Is Heavy
9872 6.50 No
9873 6.75 No
9874 7.00 No
9875 7.25 Yes
9876 7.50 Yes
9877 7.75 Yes
9878 8.00 Yes
9879 8.25 Yes
9880 6.25 No
9881 6.50 No
9882 6.75 No
9883 7.00 No
9884 7.25 Yes
Total Heavy Count: 6