Upload
kristian-carroll
View
212
Download
0
Embed Size (px)
Citation preview
Creating Table using Creating Table using
LOOP LOOP
By Adnan and M.Qazi
Programmers
Agenda
Introduction Designing Algorithm Flow Chart Coding Testing and Debussing Demonstration
Introduction
Language Loops syntax Different types of Loops Internet Wikis Blogs Self Assessment
Designing Algorithm
Pseudo code No of Inputs No of outputs Table through all types of loops Formula for creating table
Algorithm of table
Enter the number to print the table. Loop will be repeated 10 times. Formula used in loop P=N*K and the
values of P,N and K is printed. Step No.3 will be repeated 10 times. End of the loop.
Flowchart
The pictorial representation of an algorithm is called flowchart.
Flowchart symbols. Start /End Flow lines Input/output Processing Decision symbol Connector symbol
Flowchart of table
start
Enter the number N
K= 1 to 10
P=N*K
Print N,K,P
Stop
CODING
10 INPUT “ENTER TH NUMBER=“,N20 FOR K=1 TO 1030 P=N*K40 PRINT N “*” ,K,”=“,P50 NEXT K60 END
Testing and Debugging
Complete unit testing of a program.
Demonstration
Output of program. Participants
Teachers Students Parents
Feedback Blogs Wikis