Write a program to find whether the number is positive or negative. | CODE WITH SHARAD

Write a program to find whether the number is positive or negative.

Written by Sharad Raj on 13th of March, 2018

BASIC PROGRAMS   C LANGUAGE PROGRAMS

PROGRAM CODE

#include<stdio.h>

#include<conio.h>

void main()

{

int a;

clrscr();

printf(“enter the number : “);

scanf(“%d”,&a);

if(a>0)

{

printf(“%d is positive number.”,a);

}

else

{

printf(%d is negative number”,a);

}

getch();

}


Comments


Contact