Computer Science, asked by asnuuku32, 2 days ago

write a c program using if else​

Answers

Answered by Raed6
0

// Program to display a number if it is negative

#include <stdio.h>

int main() {

int number;

printf("Enter an integer: ");

scanf("%d", &number);

// true if number is less than 0

if (number < 0) {

printf("You entered %d.\n", number);

}

printf("The if statement is easy.");

return 0;

}

please mark my answer brainliest.

Similar questions