Computer Science, asked by max7925, 10 months ago

write an algorithm to buy rosgullas and if it is not available in the haldiram shop then to buy an ice-cream from there​

Answers

Answered by aditimoulik2001
6

If there are no Rosgullas

Buy icecream

Else buy Rosgullas

Explanation:

Pls mark it the brainless if it helps

Answered by StaceeLichtenstein
3

Following are the algorithm is given below

Explanation:

  • Start
  • if ( check rosgullas  from haldiram shop  if there ) then

        buy  "buy rosgullas"

       else

         buy  "ice-cream "

  • In this algorithm  we have used if -else statement .If rosgullas  is available in haldiram then it executed the statement inside the if block it means buy  "buy rosgullas" otherwise else block will executed i.e buy  "ice-cream ".
  • End.

Learn More :

https://brainly.in/question/6764888

Similar questions