SarthakKeshari / Java-Questions-and-Solutions

This repository aims to solve and create new problems from different spheres of coding. A path to help students to get access to solutions and discuss their doubts.
MIT License
46 stars 95 forks source link

Create Consecutive_Numbers_Sum.java #412

Closed nik132-eng closed 2 years ago

nik132-eng commented 2 years ago

Issue Id you have worked upon - #407

Briefly explain your program logic -

used simple maths explain in comments

Screenshots(Attach 2 screenshots of your own input and output) -

image

image


Checklist:

Eg - If your code follow the below guidelines. Kindly change [] to [x]

All the conditions should be fulfilled for considering your code for merging -