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 8 – Checking Divisibility of Two Numbers in C

 

➗ Day 8 – Checking Divisibility of Two Numbers in C

Hello readers,

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


📝 Today’s Program

On Day 8, I wrote a program in C to check whether one number is completely divisible by another. This is done using the modulus operator (%).


🖥️ C Code Snippet

#include <stdio.h>

int main()

{

  /*

  Program : To check divisibility of two numbers

  Author  : Mayur B Gund

  Date    : 12 Sep 2025

  */

  

  int a, b;

  

  printf("Enter the Dividend\n\n");

  scanf("%d", &a);

  printf("The dividend is %d\n\n", a);


  printf("Enter the Divisor\n\n");

  scanf("%d", &b);

  printf("The divisor is %d\n\n", b);


  int c = a % b;


  if (c == 0) {

      printf("%d is completely divisible by %d", a, b);

  }

  else {

      printf("%d is not completely divisible by %d", a, b);

  }


  return 0;

}

📌 Output Example


Enter the Dividend
20
The dividend is 20

Enter the Divisor
4
The divisor is 4

20 is completely divisible by 4


Enter the Dividend
22
The dividend is 22

Enter the Divisor
5
The divisor is 5

22 is not completely divisible by 5



⚙️ Key Learnings Today

  • Using the modulus operator % to check divisibility.

  • Asking for user inputs and displaying them clearly.

  • Applying if–else logic to interpret results.

  • Importance of adding comments for program readability.



💡 Reflection

This program felt like a natural extension of yesterday’s logic exercises. It reminded me how coding helps solve simple mathematical checks in a matter of seconds.

Small programs like this may seem basic, but they form the core building blocks of larger applications. Every day, I feel my fundamentals in C are becoming stronger.

Step by step, building my coding journey 🚀


CODING SNIPPET



Also read other blogs at Mayur's Tech 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...