C
85
exit c
Guest on 11th February 2023 01:22:10 PM
#include <stdio.h>
#include <stdlib.h>
int main(void) {
int x;
printf("Enter a positive number ");
if (x < 0) {
printf("You entered a negative number\n");
return 1;
}
x++;
printf("The incremented number is %d\n", x
);
return 0;
}
Raw Paste
Login or Register to edit or fork this paste. It's free.