answersLogoWhite

0


Best Answer

# calculate simple interest for 3 sets of p,n and r

count=1

while [ count -le 3 ]

do

echo "\n enter the values of p,n and r\c"

read p n r

si='echo $p\*$n\*$r/100|bc'

echo simple interest = Rs. $si

count='expr $count+1'

done

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Program to find the simple interest in unix?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you Find size of a file using c program?

OS-dependent.stat for unix, FindFirstFile for Windows.


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 write a c program for diff command that we use in unix?

Too difficult to answer here. I would find the source code and use that (if you really had to). Might require a 'port' to another operating system if it wasn't Unix based.


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.


In unix how will you find extension of file using commands?

Unix files do not rely on extensions, therefore there is no command to find them.