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
2
Answer:
good question
Explanation:
i will do it
Answered by
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
English,
2 months ago
Physics,
2 months ago
Math,
2 months ago
Hindi,
4 months ago
Computer Science,
10 months ago