Algorithm:: Step 1: Start Step 2: Assign i=0 Step 3: Repeat steps 4,5&6 until i=100 reaches Step 4: if i%2!=0 goto step 5 Step 5: Print i Step 6: Compute i=i+1 Step 7: Stop Flowchart:: Program code:: i=0while i<100: if i%2!=0: print i i=i+1
very bad representation
ReplyDelete