InterviewSolution
Saved Bookmarks
| 1. |
WAP that prints the series showing products of two consecutive numbers. WRITE THE FULL CODE IN JAVA PLZZ DO IT FAST!!!! |
|
Answer» Answer: secutive numbers above N/2 that ADDS up to N, because N/2 + (N/2 + 1) WOULD be more than N. So we start from start = 1 till end = N/2 and check for every consecutive sequence WHETHER it adds up to N or not. If it is then we PRINT that sequence and start looking for the next sequence by incrementing start point. C++
|
|