/* write a program to find out the number check +ve , -ve, or zero */
#include<stdio.h>
#include<conio.h>
main()
{ int a ;
printf("\n enter a number =");
scanf("%d ",a);
if(a==0)
printf(" is zero");
else if(a>0)
printf("%d number is +ve",a);
else
printf("%d number is -ve",a);
getch();
}
/*
Out put
enter a number = 5
number is +ve
*/
Flowchart of program
👌😊😀
No comments:
Post a Comment
This Blog helps you to learn basics to high level programming coding and practicals.
conceptual understanding