---
title: "Discussion on \"Write a C program that prints the last digit of the number stored in a variable\" | Hashnode"
description: "Discussion on \"Write a C program that prints the last digit of the number stored in a variable\". This question is a bit tricky for beginners, and you probably won't know exactly how to solve it. But as a programmer or a software engineer in the making, you are always developing your problem solving skills.\nSo, take some time and analyze the ques..."
url: "https://hashnode.com/posts/write-a-c-program-that-prints-the-last-digit-of-the-number-stored-in-a-variable/629c69c4fe616239d48f5a61"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Write a C program that prints the last digit of the number stored in a variable](https://blog.ehoneahobed.com/write-a-c-program-that-prints-the-last-digit-of-the-number-stored-in-a-variable?utm_source=hashnode&utm_medium=feed)

This question is a bit tricky for beginners, and you probably won't know exactly how to solve it. But as a programmer or a software engineer in the making, you are always developing your problem solving skills. So, take some time and analyze the ques...

Jun 5, 2022 · 3 min read · blog.ehoneahobed.com  
Read the article

-   [#c](https://hashnode.com/tag/c)
-   [#c-programming](https://hashnode.com/tag/c-programming)
-   [#c-program](https://hashnode.com/tag/c-program)
-   [#learn-coding](https://hashnode.com/tag/learn-coding)
-   [#coding](https://hashnode.com/tag/coding)

## Written by

[Dr. Ehoneah Obed](https://hashnode.com/@ehoneahobed)

@ehoneahobed

  
[View profile](https://hashnode.com/@ehoneahobed)

Software and AI engineer, health informatician, and registered pharmacist. I write about what I build and what I learn.

Heya! 👋 I love helping people, and one of the best ways I do this is by sharing what I learn and build. I started as a pharmacist at a tertiary hospital in Northern Ghana, where I saw how much technology could improve healthcare. That sparked my interest in digital health. I taught myself to code, then joined the ALX Software Engineering program, which became a turning point. I went on to complete a Master of Health Informatics at the University of Toronto. Today I am a software and AI engineer and a health informatician, and I practise remotely as a Digital Health Pharmacist. I combine clinical experience with technical skills to build tools that solve real problems in health and beyond, and I write here about what I build and what I learn.

## Responses 2

Markdown supported · ⌘↵ to post

[Ahemen Jeho](https://hashnode.com/@c8tor0360)

[Jul 17, 2023](https://hashnode.com/posts/write-a-c-program-that-prints-the-last-digit-of-the-number-stored-in-a-variable/629c69c4fe616239d48f5a61/comment/64b51b7c0470cd817f0e2ad2)

Thank you, sir. You have so much inspired me. I would love to know you personally. I'm one of your students at ALX.

[Ugochi Talabi](https://hashnode.com/@SharonJoseph)

[Feb 17, 2023](https://hashnode.com/posts/write-a-c-program-that-prints-the-last-digit-of-the-number-stored-in-a-variable/629c69c4fe616239d48f5a61/comment/63ef54753c9c765be7a474fc)

It's great. He is a good teacher!
