answersLogoWhite

0


Best Answer

Solution 1: echo 2 4 6 8 10

Solution 2: seq 2 2 100

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you program in shell to print even no?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you print the current directory in shell program?

pwd


Q2 Write a program to print even numbers between 10 and 50?

You can use int i; for (i = 10; i <= 50; i += 2) {//print i} as a program to print even numbers between 10 and 50.


Shell program to find number of seconds in a day?

echo 'print 24*60*60,"\n"' | bcorecho '86400'


Program to print all the even numbers of an array in visual basic?

find even number in array


How do you print nos from 10-0 then only even nos are printed in a program flowchart?

10


Program for check a number is even or odd using PYTHON language?

This program checks whether a number is odd or even. NOTE: This site removes formatting from answers. Replace (tab) with a tab or four spaces. #!/usr/bin/python print("Type a number.") n = input(": ") l = len(n)-1 even = ("02468") if n[l] in even: (tab)print(n, "is even.") if n[l] not in even: (tab)print(n, "is odd.")


Write a unix program to print print a pattern?

echo 'print a pattern'


Write the program witch show that the number is even or odd?

In BASIC: 10 INPUT X: IF X = 999 THEN STOP ELSE PRINT X; 20 IF X/2 = INT(X/2) THEN PRINT "EVEN" ELSE PRINT "ODD" 30 GOTO 10


Can a sea shell have an animal print on it?

No. If you have found a hard rock with an animal print on it, it may be a fossil.


How do you print a line on screen shell script?

That would depend on what shell you're using. Most seem to have a command similar to "echo x" which will print x to the terminal.


What is the first million digits of pi?

There is a computer program that will print out the value of pi to even more decimal places than that.


Write an assembly language program to print a to z on screen?

write a program to print A to Z on screen in c?