C Program Tutorial Class-09

in Steem Sri Lanka14 days ago

Image cover

I hope everyone is well today I am sharing with you all through this video a program to determine whether a number is positive or negative. I have run this program and shown how to find out by displaying the result with input. You can see the program in the video, besides I have given the program in this article for your convenience, you can copy it from here and run it.

#include<stdio.h>
int main()
{
int n;
printf("Enter a number:");
scanf("%d", &n);
if(n>0)
printf("Positive Number");
else
printf("Negative Number");
return 0;
}
Actually, you won't have any problem understanding it. If you have any problem understanding it, please let me know. Thank you very much to everyone. May everyone be well. My sincere greetings and congratulations to those who visited my post.

IPFS Video

Posted with Speem

Sort:  

#play

Hi Dear Friend,

Image

Video reviewed by @dove11

Loading...

Your post have been rewarded by the Speak on Steem curator team!

Now become a plus member delegating at least 500 SP

Ways to support us:

Image

Curated by @alejos7ven

Speak On Steem GIF.gif

Coin Marketplace

STEEM 0.07
TRX 0.30
JST 0.056
BTC 73718.77
ETH 2312.79
USDT 1.00
SBD 0.51