---
title: "Discussion on \"Write a C program that prints whether a given number is positive or negative\" | Hashnode"
description: "Discussion on \"Write a C program that prints whether a given number is positive or negative\". Practical Example\nAssume that you have a program that generates a random number each time \nthe program is run.\n\nNow, write a C program to tell whether the random number generated (which\nwill be stored in a variable x) is a positive or negative number..."
url: "https://hashnode.com/posts/write-a-c-program-that-prints-whether-a-given-number-is-positive-or-negative/629bedcbbd7d6337dc891f47"
---

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

Discussion

# [Write a C program that prints whether a given number is positive or negative](https://blog.ehoneahobed.com/write-a-c-program-that-prints-whether-a-given-number-is-positive-or-negative?utm_source=hashnode&utm_medium=feed)

Practical Example Assume that you have a program that generates a random number each time the program is run. Now, write a C program to tell whether the random number generated (which will be stored in a variable x) is a positive or negative number...

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

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

## 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

Markdown supported · ⌘↵ to post

No responses yet.
