Musab Abdullah's Blog
Its an personal blog
3.1 Positive or Negative
#include <stdio.h>
int main()
{
int n;
printf("enter the number:" );
scanf("%d", &n);
if (n>=0) {
printf("the number is positive\n\n\n");
}
else {
printf("the number is negative\n\n\n");
}
return 0;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment