PROGRAM TO PERFORM IF ,TO CKECK THE NUMBER IS POSITIVE


Program to perform if:
Code:

#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int a;
cin>>a;
if (a>0)
cout<<"number is positive";
}

Output:
3
number is positive

Comments

Post a Comment

Popular posts from this blog

PROGRAM TO PERFORM CALL BY REFERENCE

PROGRAM TO PERFORM RRETURN BY REFERENCE