Write a program to take an input integer from user and check whether an integer is positive or negative
..plz solve in assembly language
Answers
Answered by
3
Write a C program to check whether a given ÑÚMber is positive or negative.
☯Pictorial Presentation:
☯Sample Solution:
☯C Co
códe: #include <stdio.h> void main() { int num; printf("Input a number :"); scanf("%d", &num); if (num >= 0) printf("%d is a positive number \n", num); else printf("%d is a négative number \n", num); }
Similar questions