Computer Science, asked by mkmanish9786, 1 year ago

Write an algorithm to print 5,10,15

Answers

Answered by VaibhavKulkarni
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