Programmes written in high level languages need to be converted into machine languages before the computer can execute them.Interpreters and compilers are translation or converting programmes that produce the machine code from high level languages. The original program is called source code.An after it is translated by the interpreter or the compiler,it is called an object programme
Simple interest #include < stdio.h > void main() { int amount, rate, time, ans; printf("\nEnter Principal Amount : "); scanf("%d", &amount); printf("\nEnter Rate of Interest : "); scanf("%d", &rate); printf("\nEnter Period of Time : "); scanf("%d", &time); ans = (amount * rate * time)/100; /*Simple interest formula*/ printf("\nSimple Interest : %d",ans); }
Comments
Post a Comment