World Languages, asked by nishakharel68, 7 months ago

write a program to test whether the give number is positive or negative using sub ...end sub.

Answers

Answered by Anonymous
5

Answer:

1 Tips for Reading in a Foreign Language

Start with simple texts. ...

Keep a dictionary nearby. ...

Look for anchors. ...

Go at your own pace. ...

Test yourself/Challenge yourself. ...

Don't expect a word to always mean what you think it means. ...

Know your alphabet.

Answered by aviguru111
6

Answer:

#include <stdio.h>

int main() {

double num;

printf("Enter a number: ");

scanf("%lf", &num);

if (num <= 0.0) {

if (num == 0.0)

printf("You entered 0.");

else

printf("You entered a negative number.");

} else

printf("You entered a positive number.");

return 0;

}

Similar questions