#include<stdio.h>
#include<math.h>
#include<stdlib.h>
int main()
{
float P,R,amt;
int final,T;
char month[10];
printf("enter the amount");
scanf("%f",&P);
printf("enter the rate of interest");
scanf("%f",&R);
printf("enter the month");
scanf("%s",month);
T=atoi(month);
if(T>0)
{
amt=(P*T)+(R/2);
final=ceil(amt);
printf("%d",final);
}
else
{
printf("Invalid Input");
}
return 0;
}

More Related Content

TXT
C Program : Sorting : Bubble,
PDF
Bcsl 033 data and file structures lab s4-3
DOCX
Pilas
PPTX
latihan SAP
DOCX
Program to remove Left factoring
DOCX
Funciones
C Program : Sorting : Bubble,
Bcsl 033 data and file structures lab s4-3
Pilas
latihan SAP
Program to remove Left factoring
Funciones

What's hot (20)

PDF
Bcsl 033 data and file structures lab s1-2
PDF
Heep implementation in c
PPT
Pertemuan 2 1
DOCX
Practica 08 bison
DOC
Selection
PPTX
Para la suma y la multiplicacion de 2
DOCX
Retornan y no reciben
DOCX
Perhitungan Dua Bilangan dengan Java NetBeans
PDF
DOCX
(Meta 4) ejemplo calcular la mitad de un numero dev c++
TXT
N primo clase programa
DOCX
Par o impar
PDF
C언어 스터디 강의자료 - 3차시
DOCX
algoritma
PDF
Sujet bac info 2012 g1, g2 et g3 avec correction
DOCX
PDF
C언어 스터디 강의자료 - 2차시
Bcsl 033 data and file structures lab s1-2
Heep implementation in c
Pertemuan 2 1
Practica 08 bison
Selection
Para la suma y la multiplicacion de 2
Retornan y no reciben
Perhitungan Dua Bilangan dengan Java NetBeans
(Meta 4) ejemplo calcular la mitad de un numero dev c++
N primo clase programa
Par o impar
C언어 스터디 강의자료 - 3차시
algoritma
Sujet bac info 2012 g1, g2 et g3 avec correction
C언어 스터디 강의자료 - 2차시
Ad

Viewers also liked (8)

DOCX
Actividades 2017 ESEF
PPTX
PDF
Fraternidad 62
PDF
Quienes Somos
DOC
Nextthe next
PPT
Mrs.m.classroom family.ppt
PPTX
PPTX
Recuva
Actividades 2017 ESEF
Fraternidad 62
Quienes Somos
Nextthe next
Mrs.m.classroom family.ppt
Recuva
Ad

Power%20compounding