Advertisement
Guest User

3

a guest
May 25th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. #include<stdio.h>
  2. int main(){
  3. int n;
  4. printf("Enter an integer: ");
  5. scanf("%d", &n);
  6. if(n>0){
  7. printf("\nThe number is positive");
  8. }
  9. else if(n==0){
  10. printf("\nThe number is Zero");
  11. }
  12. else{
  13. printf("The number is negative");
  14. }
  15. return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement