Skip to main content

2025: A Year of Exams, Excellence, and Evolution

 2025: A Year of Exams, Excellence, and Evolution Hi, I am Mayur Gund welcoming you at Mayur's Tech Journey.  As the curtains fall on 2025, I look back at a year that was defined by grit, transitions, and the discovery of my true passion. From the silent halls of exam centers to the vibrant development labs of Sanjivani, this year has been an unforgettable journey of growth. The Rigorous Start:  The year 2025 began with intense pressure. Every student in India knows the weight of the last week of January—the JEE Mains . My preparation was rigorous, and on 12th February, I received my first boost: a 83 percentile in JEE Mains. While I was still processing this, the HSC Board exams arrived in the same month, requiring a complete shift in focus from entrance logic to descriptive writing. The Frustrating Peak: MHT-CET and Mock A March was perhaps the most challenging month of the year. It was a period of constant mock tests. The frustration of stagnant scores and the repeti...

📐 Day 7 – Checking for a Right-Angled Triangle in C


📐 Day 7 – Checking for a Right-Angled Triangle in C



 Hello readers,

I am Mayur Gund, a first-year Computer Science & Engineering student at Sanjivani College of Engineering. Through this blog series “Mayur’s Tech Journey”, I document my daily coding learnings and reflections as I strengthen my programming foundation.


📝 Today’s Program

On Day 7, I worked on a C program that checks whether a triangle is a right-angled triangle using the Pythagoras theorem.

Formula Recap

If (hypotenuse)2=(side1)2+(side2)2Right-Angled Triangle\text{If } (hypotenuse)^2 = (side1)^2 + (side2)^2 \Rightarrow \text{Right-Angled Triangle}

🖥️ C Code Snippet

#include <stdio.h> int main() { double a, b, c; // sides of the triangle double d, e, f; // squares of sides printf("Enter the hypotenuse of a triangle: "); scanf("%lf", &a); printf("Enter one side of the triangle: "); scanf("%lf", &b); printf("Enter the other side of the triangle: "); scanf("%lf", &c); d = a * a; e = b * b; f = c * c; if (d == e + f) { printf("The triangle is a right-angled triangle.\n"); } else { printf("The triangle is not a right-angled triangle.\n"); } return 0; }

📌 Key Learnings Today

  • Correct use of format specifiers%lf for double.

  • Applying mathematical theorems (Pythagoras) in code.

  • Writing and understanding conditional logic (if–else).

  • Realizing the importance of data type accuracy for correct input/output 


💡 Reflection

Today’s program connected my knowledge of mathematics and programming beautifully. It felt exciting to see the Pythagoras theorem come alive through code.

This exercise also taught me the importance of choosing the right data types and using the correct format specifiers in scanf. These small details make a big difference in whether a program runs smoothly or not.

Step by step, I’m learning how to translate real-world problems into programs. 🚀


Step by step, building my coding journey 🚀



Comments

Popular posts from this blog

The Boy Behind the Percentile: A Memory of 12:07 AM

  : Usually, this blog is about C++, Linux, and my journey through the world of technology. But today, I’m putting the code aside. A few days back,our college had a photoshoot with the placed students of this year. Seeing the happiness on their faces brought back a flood of memories. Writing this blog to get my thoughts out. I want to tell you a story about a moment that stays with me every time I walk through my college gate—a moment that defines why I work as hard as I do. The Myth of the "Bright" Student  People see my progress now—the 99.07%tile in PCM, 99.29 in PCB and college topper—and they call me "bright." But I’ll tell you a secret: I was never the bright student in school. I was average. The person you see today wasn't born with talent; I was forged in the fire of 12th grade. I remember the Sankalp (the vow) I took. I remember the late nights, the constant overthinking, and the "love-hate" relationship I had with that life. I was fighting fo...

🚀 Back on Track: Powering Up After Exams!

Hello and welcome back to Mayur's Tech Journey! It’s been a little over a month since my last post, and while I’ve been absent from the blog, I've been anything but idle in my learning. The past few weeks were a whirlwind of exams, but now that they're done, I'm thrilled to dive back into sharing my experiences with you. As a first-year B.Tech CSE student, this journey is all about constant learning and growth, and I have a bunch of exciting updates and technical breakthroughs to share. Let's catch up!  My Recent Achievements : The grind has been real, and I'm proud of the milestones I’ve hit! These achievements truly mark how far I've come CodeChef Streak & Stars: I managed to maintain a 19-day constant streak on CodeChef, demonstrating real consistency. More importantly, I recently achieved my 3rd star in C++ on hackerrank! This shift from just starting to gaining three stars is a huge personal win. DSA Kickstart: I officially began my Data Structures ...

To the Light Bearers of My Life: A Guru Purnima Tribute

From Blackboard to Heart – My Teachers, My Gurus                   ⚡️ Thanks to my Family :   I am so thankful to my parents and family for being my first Guru. You would be my guide forever. Dear Mom and Dad you are the best teachers of the world. You taught me the best skill of living. Happy Guru Purnima  🌱 My Early Gurus – Foundations of Curiosity As I look back, some names shine brightly from my school years. In my secondary school, I was deeply influenced by Kale Sir, Barhate Ma’am, and Navale Ma’am. Their incredible way of teaching mathematics made the subject come alive for me. Abhang Ma’am’s loving and kind nature touched my heart, while Dhas Sir’s strictness helped instill discipline in me – both equally important in shaping me. 🌐 The Digital Gurus – Learning Beyond the Classroom When I reached class 11, my world of learning expanded online. Dinesh Sir’s humorous way of explaining mathematics made even tough concepts feel...