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

PRINT HELLO WORLD

PROGRAM TO PERFORM INLINE FUNCTION

SUM PRODUCT DIFFERENCE DIVISION AND MODULO