0
write a c++ program to input an integer value and check if it is positive or negative.
3 Answers
+ 6
#include <iostream>
using namespace std;
int main() {
int number;
cin>>number;
if(number<0)
cout<<"Your number is negative";
else
cout<<"Your number is positive";
return 0;
}
0
ty
0
ek galti h agar kisi ne no. zero dal dia to program fail