Sunday, 21 January 2018

Simple Interest 1 Program


Simple Interest 1 Program
#include<stdio.h>
#include<conio.h>
main()
{
int p,t,r,si;
clrscr();
printf("enter the values of p,t,r");
scanf("%d%d%d",&p,&t,&r);
si=(p*t*r)/100;

printf("%d",si);
getch();
}

Related Posts:

  • Inroduction To PreProcessors Inroduction To PreProcessors INTRODUCTION:     The C preprocessor is a program that processes our source program before it is passed to the compiler.This is a  capability that does not exist in many other … Read More
  • Difference Between The Macros And Functions Difference Between The Macros And Functions Macros are like functions but there is difference between those two . 1. In macro call the processor replaces the macro template with its macro expansion. Where as in functi… Read More
  • Defining And Opening A File Defining And Opening A File  If we want to store data in a file in the secondary memory, we must specify certain things about the file , to the operating system. They include:  1.File name.  2.Data Structu… Read More
  • Closing A File & File Functions Closing A File & File Functions When we have finished all operations the file must be closed . This ensures that all outstanding information associated with the file is flushed out from the buffers and all links to… Read More
  • Random Access Files Random Access Files Random access to files are required when we want to access only particular part of a file instead of reading and writing data sequentially.This can be achieved by using the functions like : fseek,fte… Read More

0 comments:

Post a Comment