Computer Science, asked by nishapv7559, 4 months ago

Step 1: Start
Step 2: N=1
Step 3: Print N
Step 4: N= N + 1
Step 5: IfN<= 5 then goto step 3
Step 6: Stop
(i) Write the output of the above algorithm.
(ii) Draw the flow chart of the above algorithm​

Answers

Answered by Anonymous
2

Answer:

good question

Explanation:

i will do it

Answered by vinod04jangid
0

Answer:

(i) 1

  2

Explanation:

(i) The actual program of the given algorithm is

#include<stdio.h>

int main(){

   int N=1;

   printf("%d\n",N);

   N=N+1;

   if(N<=5){

       printf("%d",N);

       N=N+1;

   }

}

Output: 1

             2

#SPJ2

Attachments:
Similar questions