Menentukan Bilangan Positif dan Negatif

Posted by Budi Arieyanto | Posted in | Posted on 04.45

#include<stdio.h>
#include<iostream.h>
#include<conio.h>

void main()
{
int m;
clrscr();

cout<<"masukan m=";cin>>m;
if(m>20)
cout<<"bilangan positif"<<endl;
else
if(m<12)
cout<<"bilangan negatif"<<endl;
else
cout<<"m adalah nol"<<endl;
getch();

getch();
}

Comments (0)

Posting Komentar