Write a program in c to check the number is positive or negative - CodeTextPro | Web Tutorial | Technology

CodeTextPro.com Provides - Web design, Technology gyan, Digital marketing, Online earnings, Seo, Adsense, Technology news, Motivation and inspiration, Latest Technology Affairs, Gadgets, Blogging

Friday, January 4, 2019

Write a program in c to check the number is positive or negative

C Program to Check the Number is Positive or Negative

#include<stdio.h>
#include<conio.h>
main()
{
int a;
printf("enter the number");
scanf("%d",&a);
if(a>0)
{
printf("a is positive");
}
else
{
printf("a is negetive");
}
getch();
}

Output:






No comments:

Post a Comment