Computer Science, asked by saigoutham, 1 year ago

logic for c programe to check for positive , negative and , zero numbers

Answers

Answered by Revolution
1
see the attached file
Attachments:

Revolution: don't think i copied it....i export it as pdf
nope: how do u thought that we will think its copied
Revolution: one of a moder... deleted my answer ...he said that pdf files are copied...
Answered by tabataba
0
#include<iostream.h>
void main()
{
cout<<"enter any no.";
cin>>a;
if (a < 0) 
{
cout<<"negative";
}
else if (a>0)
{
cout<<"positive";
}
else
{
cout<<"the no. is 0";
}
}
Similar questions