Input & Output Number

Di bawah ini merupakan contoh Program Input & Output Number.
Untuk memasukkan (input) bilangan, kita akan menggunakan perintah "cin".
Lebih jelasnya perhatikan program di bawah ini!

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

main()
{

int number;

clrscr();

cout <<"Enter your number ! : ";
cin >>number; //Enter integer type number data

cout <<"\n"; //It's row move sign
cout <<"Your number : " << number;

getch();
}

Posted in . Bookmark the permalink. RSS feed for this post.

Leave a Reply

Search

Support by Blogger ITN | Converted by LiteThemes.com