Berikut Source Code dan Juga Link Videonya
Source Code
#include <stdio.h>Terima Kasih ^_^
#include <stdlib.h>
#include <math.h>
int main(void)
{
int random,input;
do
{
printf("input your number (1-10) : ");
scanf("%d",&input);
random = rand()%10+1;
if(input==random)
printf("yes is %d Congratulation you win\nbn",random);
else
printf("You wrong is %d, please try again\n", random);
}
while(input!=random);
system("pause");
return (0);
}
No comments:
Post a Comment