Write an algorithm to print 5,10,15
Answers
Answered by
1
The C program for given question is as follows :-
#include <stdio.h>
int main()
{
int i;
for(i=5; i<=15; i=i+5)
printf("%d\n",i);
}
Now writing the Algorithm for the following Program :-
Step 1 - START
Step 2 - Declare a variable (here i)
Step 3 - for i=5 where i<=15 till i=i+5
Print i
Step 4 - STOP
Similar questions
Chemistry,
6 months ago
Social Sciences,
6 months ago
Hindi,
6 months ago
Math,
1 year ago
English,
1 year ago
Social Sciences,
1 year ago
India Languages,
1 year ago
Chemistry,
1 year ago