Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //10/18: �i�u�����Ͷü�, use for
- #include <iostream>
- #include <iomanip>
- #include <stdlib.h>
- #include <time.h>
- using namespace std ;
- int main() {
- float num1;
- srand(time(NULL));
- cout << "���ͤ@�Ӥ���[0,5.00]����"<<endl;
- num1=(rand()% 501);
- num1=num1/100;
- cout << num1<<endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment