🌟 Mayur’s Tech Journey
I am Mayur B Gund, a first-year Computer Science and Engineering student at Sanjivani College of Engineering.
Through this blog series, Mayur’s Tech Journey, I am documenting my daily coding learnings — starting from the basics of Python and C, and gradually moving towards bigger projects.
My aim is to learn, explore, and share everything I code, so that someday I can look back and see how far I’ve come.
✨ This is not just about writing code, but about building consistency, discipline, and a strong foundation for my future in technology.
💰 Day 4 – My C Program to Calculate Simple Interest
Today, I explored another practical application of C language — writing a program to calculate Simple Interest using user inputs. This program made me realize how coding connects directly with real-world problems from mathematics and finance.
🧩 The Program :
#include <stdio.h>
/*
program : To find simple interest using user inputs
Author : Mayur B Gund
Date : 08/09/2025
*/
int main() {
float p, r, t; // principal, rate, time
printf("Enter principal amount :\n");
scanf("%f", &p);
printf("Enter rate of interest : \n");
scanf("%f", &r);
printf("Enter time for interest : \n");
scanf("%f", &t);
printf("The simple interest on the given inputs is : %f", (p * r * t) / 100.0);
return 0;
}
📌 Output Example :
Enter principal amount :
30000.0
Enter rate of interest :
4.5
Enter time for interest :
5
The simple interest on the given inputs is : 6750.000000
💡 What I Learned Today :
- How to take multiple user inputs in a program.
- Use of float variables for decimal values.
- Applying a real-life formula in C.
- Structuring input and output for better readability.
- Setting up a C environment in VS Code — unlike Python, it requires installing the correct compiler and extensions like Code Runner
🚀 Reflection :
Coding in VS Code for the first time in C was not easy. I had to work hard to set up the environment, and I realized something important: every language has its own legacy.
Python was simple to start with, but C made me understand the importance of compilers and configurations. This challenge itself became a learning experience
With every program, from geometry (area of circle) to finance (simple interest), I feel closer to solving real-world problems with code.
✨ Step by step, building my coding journey 🚀
![]() |
| Code in C Language |
![]() |
| Output of program |


Comments
Post a Comment