Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main ( void )
- {
- int a ;
- printf ( “Please enter an integer value: “ ) ;
- scanf ( “%d”, &a ) ;
- if ( a >= 0 )
- printf ( “You entered a positive value!\n” ) ;
- else
- printf ( “You entered a negative value.\n” ) ;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement