Sebuah Perjalanan Hidup
Saturday 26 October 2013
Contoh Sintax C++ Untuk Memunculkan Angka Random
#include<stdio.h>
#include<stdlib.h>
#include<iostream.h>
#include<conio.h>
void main()
{
int n;
float x,a=2;
for (n=1;n<=10);
{
x=(rand()%21)/a;
cout<<x<<endl;
}
getch();
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment