Wednesday, October 12, 2011

Mencari nilai x dan nilai y di codeblocks

#include <stdio.h>
#include <stdlib.h>

main(){

printf("Tekan ENTER untuk mengetahui nilai x dan y \n");
scanf("x&y");

int x;
int y;
x    =      8;
y    =      x+(7*x/2);
x   = y /3;


printf("nilai y adalah:%d \n",y);
printf("nilai x adalah:%d \n",x);

system("Pause");

}

0 comments:

Post a Comment

 

Copyright @ 2013 Dunia Teknologi.