answersLogoWhite

0

ALGORITHM EVEN

BEGIN

FOR ( num = 0; num <= 20; num++ )

BEGIN

IF ( num MOD 2 == 0 ) THEN

DISPLAY (num)

END IF

END FOR

END EVEN

in C:

#include <stdio.h>

int main (void) { puts ("0 2 4 6 8 10 12 14 16 18 20"); return 0; }

User Avatar

Wiki User

15y ago

What else can I help you with?

Continue Learning about Engineering
Related Questions

A is an application program that allows you to search for and display webpages?

what is an application program that allows you to search for and display web pages?Examples would be, Internet Explorer, FireFox, Opera, Crome and many more.


What would the display for the numbers 31-40 look like?

71


Write a C program to display odd numbers from 1 to n where n is accepted from user?

#include&lt;stdio.h&gt; main() { int i=0,j=0,n; printf("Enter a number:"); scanf("%d",&amp;n); printf("The first %d odd numbers are:-\n"); for(i=0;i&lt;=n;i++) { if(j%2!=0) printf("%d\n"j); j=j+1; } }


CAN a word processor program read encrypted data?

No, if it is coded it would display only set of meaningless characters.


How many times would a digital clock display the same numbers in a 24-hour day?

i think its 17


Does a calculator display the exact values of all irrational numbers?

No. An irrational number is one that does not repeat or finish, and a calculator cannot display millions of digits like an irrational number would have.


Write a C program to find the sum of all prime numbers?

Since there is an infinite set of prime numbers the answer would be infinity.


What is the difference between the commands you would have to execute to write a character to the display if you did not have BIOS?

wat


What numbers are between 12.0 and 29.0?

There are an infinity of numbers between 12.0 and 29.0 so it would be impossible to list them.


How many numbers between 44 and 81?

Between them, not including them it is 36. If you include these two numbers, it would be 38.


How can I transfer big files between computers?

You would need a program like DropBox. You would need to have a network connection between the two computers you want to use. Another program would be YouSendIt.


What is the sum of all the numbers from 1 to 240?

Any spreadsheet program would tell you... 28,920