/* program to check whether the number is Positive or Negative */
#include<stdio.h>
#include<conio.h>
void main()
{
int number;
printf("enter a number");
scanf("%d", & number);
if (number < 0)
{
printf("You entered a negative number.");
}
else if (number >0)
{
printf("You entered a positive number.");
}
else
{
puts("you entered ZERO(0)");
}
getch();
}
Nice Article.
ReplyDeleteWe are Software Solution Providers in Islamabad, working with international clients in creating, designing and managing their websites and customer relations/Sales etc.
We Provide:
1.) SEO and Digital Marketing Services
2.) Web Design and Development Services
3.) CRM and ERP systems
hii sir
ReplyDeletemainu even or odd number da program samj nahi aya
please sir mainu scanf di line ni samj ayi
ReplyDeletetuci des deyo ji
ReplyDeleteComputer study materials for exams
ReplyDeleteVisit here
www.computernotes4u.com