Skip to main content

Challenge 3: Count the Apples! 🚀

Welcome to this challenge! Work with Robo 🤖 to solve this problem step-by-step using algorithms and flowcharts.

🎬 The Story

Robo has $3$ apples in one bag and $5$ apples in another. Help Robo read both numbers, add them together, and display the total sum.

📝 The Algorithm

  1. Start (Begin the program)
  2. Read Number1 and Number2 (Input)
  3. Add Number1 and Number2 and store the result in sum (Process)
  4. Display sum (Output)
  5. Stop (End the program)

📊 The Flowchart

Notice the introduction of the Process Rectangle for calculations.


💻 From Flowchart to Code

Here is how to add two input numbers in Python, Java, and C:

# Read two numbers (converted from text to integers)
num1 = int(input("Enter first number: "))
num2 = int(input("Enter second number: "))
# Add them
total = num1 + num2
# Display result
print("Sum:", total)

🔗 Next Steps

📍 Visit Us

🏫 VD Computer Tuition Surat

VD Computer Tuition
📍 Address
2/66 Faram Street, Rustompura
Surat395002, Gujarat, India
📞 Phone / WhatsApp
+91 84604 41384
🌐 Website

Computer Classes & Tuition — Areas We Serve in Surat

AdajanAlthanAmroliAthwaAthwalinesBhagalBhatarBhestanCanal RoadChowkCitylightDumasGaurav PathGhod Dod RoadHaziraJahangirpuraKamrejKapodraKatargamLimbayatMagdallaMajura GateMota VarachhaNanpuraNew CitylightOlpadPalPandesaraParle PointPiplodPunaRanderRing RoadRustampuraSachinSalabatpuraSarthanaSosyo CircleUdhnaVarachhaVed RoadVesuVIP Road
📞 Call Sir💬 WhatsApp Sir