Computer Science, asked by aryakashyap9958, 11 months ago

Write an algorithm to print first 10 multiples of 2

Answers

Answered by VaibhavKulkarni
24

The C program for given question is as follows :-

#include <stdio.h>

int main()

{

   int i;

   for(i=2; i<=20; i=i+2)

       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=2 where i<=20 till i=i+2

                    Print i

Step 4 - STOP

Similar questions