Algorithm Tracer

Enter Your Algorithm

Examples (click to load)

Welcome Program

step-1: start
step-2: print "Welcome to AI Karyashala Bootcamp!\n"
step-3: stop

Sum of Two Numbers

step-1: start
step-2: print "To add two numbers.\n"
step-3: print "Enter the first number: "
step-4: read Num1
step-5: print "Enter the second number: "
step-6: read Num2
step-7: Sum = Num1 + Num2
step-8: print "The sum of " + Num1 + " and " + Num2 + " is " + Sum + ".\n"
step-9: stop

Print N Natural Numbers

step-1: start
step-2: print "How many natural numbers you want to print? "
step-3: read NumCount
step-4: Count = 1
step-5: print "The first " + NumCount + " natural numbers are "
step-6: if (Count < NumCount):
          print Count + ", "
          Count = Count + 1
          goto step-6
step-7: print Count + ".\n"
step-8: stop

Print working

step-1: start
step-2: Num1 = 2
step-3: Num2 = 3
step-4: Sum = Num1 + Num2
step-5: print "The sum of" + Num1 + "and" + Num2 + "is" + Sum + ".\n"
step-6: print "The sum of" + Num1 + " and " + Num2 + " is " + Sum + ".\n"
step-7: print "The sum of " + Num1 + "and " + Num2 + " is " + Sum + ".\n"
step-8: print "The sum of " + Num1 + " and" + Num2 + " is " + Sum + ".\n"
step-9: print "The sum of " + Num1 + " and " + Num2 + "is " + Sum + ".\n"
step-10: print "The sum of " + Num1 + " and " + Num2 + " is" + Sum + ".\n"
step-11: print "The sum of" + Num1 + "and" + Num2 + "is" + Sum + ".\n"
step-12: print "The sum of"+Num1+"and"+Num2+"is"+Sum+".\n"
step-13: stop

Algorithm

Trace Table

Step Output

End-User Experience