Presentation is loading. Please wait.

Presentation is loading. Please wait.

Problem Input a number and print its table using while loop. In the end print Good Bye only once.

Similar presentations


Presentation on theme: "Problem Input a number and print its table using while loop. In the end print Good Bye only once."— Presentation transcript:

1 Problem Input a number and print its table using while loop. In the end print Good Bye only once.

2 Algorithm Dry Run Program/Code Step 1:-Declare a variable counter and assign 1 to it. counter=1 Step 2:- Input first number in variable a 4 a=int(input(“Enter a number”)) while counter <11: Step 3:- check whether counter < 11 T T T T F b=a* counter 4*1 4*2 4*.. 4*10 Step 4:- multiply a*counter and store result in b print(b) Step 5:- print b 4 8 40 counter=counter+1 Step 6:- increase the value of counter by 1 2 3 10 11 Print goodbye print(“Goodbye”)

3 TAG Question Number Grade C example and 14 Grade B example, 14 and14
Expectations TAG Question Number Grade C example and 14 Grade B example, 14 and14 Grade A example, 14,16 and 18 Grade A* example, 14,16,18 & evaluation


Download ppt "Problem Input a number and print its table using while loop. In the end print Good Bye only once."

Similar presentations


Ads by Google