Computer Science, asked by emsukanta, 19 days ago

whether the triangle

is possible or not

and display the

message accordingly.

b) Write a program

to accept a number

and

check whether it is

even number or odd.

c) Write a program

to find the simple

interest

and amount by

using function argument when

principal, time and

interest are given. d)

Write a program to

input three unequal

numbers. Display

the greatest number

among them​

Answers

Answered by mohammedshaik9343
0

This program will calculate the value of the SI where the principal, rate and the time is given by the user. So first of all, you have to include the stdio header file using the "include" preceding # which tells that the header file needs to be process before compilation, hence named preprocessor directive. There is also another header file conio.h, which deals with console input/output and this library is used here for getch() function.

Then you have to define the main() function and it has been declared as an integer so by default it returns the integer. Inside the main() function you have to declare floating type variables name 'principle', 'rate', 'sinterest'; Moreover, you have to take another integer type variable name 'time'. Now, use printf() to display the message: "Enter Principle Amount, Rate %% per Annum and Time". Then the scanf() method is used which will take three values from the user and store it into variables - principal, rate and time.

Similar questions