Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int pos_neg(int i);
- int main()
- {
- int number;
- printf("Enter an integer : ");
- scanf("%d", &number);
- printf("Result : %s",pos_neg(number));
- return 0;
- }
- int pos_neg(int number)
- {
- if (number<0){
- return "YOUR NUMBER IS NEGATIVE NUMBER";
- }else{
- return "YOUR NUMBER IS POSITIVE NUMBER";
- }
- }
Add Comment
Please, Sign In to add comment