31 January 2008

Program If Else

#include<iostream.h>

#include<conio.h>

main()

{

int u;

cout<<"Masukan umur anda : ";

cin>>u;

cout<<endl;

cout<<"Anda termasuk kategori : ";

if (u>=51)

cout<<"Manula";

else

if (u>=18)

cout<<"Dewasa";

else

if (u>=13)

cout<<"Remaja";

else

if (u>=6)

cout<<"Anak-Anak";

else

if (u>=1)

cout<<"Balita";

getch();

}

COMMENTS :

Don't Spam Here

0 komentar to “Program If Else”

 

Copyright © 2009 Fresh Themes Gallery | NdyTeeN. All Rights Reserved. Powered by Blogger and Distributed by Blogtemplate4u .