Wlcome to the blogging tifani

Srand () c++ program tebak-tebakan

Sabtu, 11 Oktober 20140 komentar

#include<iostream.h>
#include<conio.h>
#include<stdlib.h>
using namespace std;
int main()
{
int x=05;
srand(time(0));
int tebakan=rand()%10+1;
cout<<"===zona tebak angka juara===\n";
while(x!=tebakan)
{cout<<"Input angka pilihan kamu :";
cin>>x;
}
getch();
}



Share this article :

Posting Komentar

 
Support : Cara Gampang | Creating Website | Johny Template | Mas Templatea | Pusat Promosi
Copyright © 2015. TIfanie - All Rights Reserved
Template edited by Creating Website Modify by Teknologi Informasi kinie
Proudly powered by Blogger