answersLogoWhite

0

$vi multable.sh

n=5 i=1

for i in 1 2 3 4 5 6 7 8 9 10 11 12

do echo " $n * $i = `expr $n \* $i`" done

User Avatar

Wiki User

16y ago

What else can I help you with?

Related Questions

Write a Unix program that generates a multiplication table?

$vi multable.sh echo "enter the value of n:" read n i=1 for((i=1;i<=10;i++)) do echo " $n * $i = `expr $n \* $i`" done


Write an Algorithm for multiplication table of an integer?

int firstNumber,secondNumber for(firstNumber = min; firstNumber <= max; firstNumber++); { for(secondNumber = min; secondNumber <=max; secondNumber++); int result firstNumber * secondNumber; }


Is the kernel in a unix os a program?

The kernel is the central control program of Unix and the majority of other operating systems.


Is Unix is a type of utility program?

No, Unix is an operating system program. A utility program cannot run by itself; it runs under an operating system.


How can you debug a C program in Unix?

You can debug C programs using gdb on Unix.


What is portablity in terms of unix?

Unix is inherently portable; this means that a program, script, or process may be moved from Unix system to Unix system with little effort or change (hence - portable).


How do you run a Unix program?

By typing its name into the shell


Definition of a program in UNIX?

Something what the computer executes.


What is a mini shell program used for in Unix?

The mini shell program is used in Unix as a programming software. It is a redirected and streamlined approach at creating variables, commands, and tokens.


Can you run a C program in Unix?

Obviously. Unix is the original C platform. Also, the original A and B platform. :)


How do you read files from a unix shl into a procobol program?

You can read the files from Unix school by download the program to a word format. Also, you can use Adobe reader as well to read the material.


Write a program to display table of five in unix?

sum=0 i=1 echo "Enter any number " read num while [ $i -le 10 ] do sum=`expr $num \* $i` i=`expr $i + 1` echo "Table of a number is " $sum done