Skip to content

This program is check a given no is Positive ,negative or zero using if else.

Notifications You must be signed in to change notification settings

kaushittejwani99/Positive-negative-zero-if-else-c-programming

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 

Repository files navigation

Positive-negative-zero-if-else-c-programming

This program is check a given no is Positive ,negative or zero using if-else-ladder. #include<stdio.h> #include<conio.h>

int main() { int num; printf("This program checks the given no is positive ,negative or zero\n");

printf("Enter any no.:-"); scanf("%d",&num); if(num>0) { printf("%d is Positive no.\n",num); } else if(num<0) { printf(" %d is Negative no.\n",num); } else { printf("The given no is not Positive or Negative.\n"); } printf("\n -----click Enter for exit -------- "); getch(); return 0; }

About

This program is check a given no is Positive ,negative or zero using if else.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published