kunal-kushwaha / DSA-Bootcamp-Java

This repository consists of the code samples, assignments, and notes for the Java data structures & algorithms + interview preparation bootcamp of WeMakeDevs.
https://www.youtube.com/playlist?list=PL9gnSGHSqcnr_DxHsP7AW9ftq0AtAyYqJ
17.25k stars 11.08k forks source link

Update 03-conditionals-loops.md #1091

Closed mrravipandee closed 1 year ago

mrravipandee commented 1 year ago

Solve question, Sum of N

rishiraj88 commented 1 year ago

How to handle the situations when something other than an integer and "x" is entered? @mrravipandee

mrravipandee commented 1 year ago

Use the if condition to break the loop.

On Tue, 18 Jul, 2023, 18:37 Rishi Raj, @.***> wrote:

How to handle the situations when something other than an integer and "x" is entered? @mrravipandee https://github.com/mrravipandee

— Reply to this email directly, view it on GitHub https://github.com/kunal-kushwaha/DSA-Bootcamp-Java/pull/1091#issuecomment-1640197899, or unsubscribe https://github.com/notifications/unsubscribe-auth/AR2T4UNAHEKKV4Q3VFHIMBTXQ2DB3ANCNFSM6AAAAAA2IYK7AY . You are receiving this because you were mentioned.Message ID: @.***>

mrravipandee commented 1 year ago

In your program use after if condition in while loop, else if condition.

Brother after sometime I will send you the code, in that code your problem will be solved.

Connect with me: https:mrravipandee.bio.link

On Tue, 18 Jul, 2023, 18:53 Ravi Pandey, @.***> wrote:

Use the if condition to break the loop.

On Tue, 18 Jul, 2023, 18:37 Rishi Raj, @.***> wrote:

How to handle the situations when something other than an integer and "x" is entered? @mrravipandee https://github.com/mrravipandee

— Reply to this email directly, view it on GitHub https://github.com/kunal-kushwaha/DSA-Bootcamp-Java/pull/1091#issuecomment-1640197899, or unsubscribe https://github.com/notifications/unsubscribe-auth/AR2T4UNAHEKKV4Q3VFHIMBTXQ2DB3ANCNFSM6AAAAAA2IYK7AY . You are receiving this because you were mentioned.Message ID: @.***>