TryOperator
#include<stdio.h>
int main()
{
//deklarasi dan inisialisasi
int x = 0;
int y = 0;
float z = 0.0;
/// x = 0;
// y = 0;
// z = 0.0;
x=1000;
y=13;
x=x+15;
printf ("Nilai x =%d\n ",x);
y=y-7;
printf ("Nilai y =%d\n ",y);
z=x/y;
printf ("Nilai z =%f\n ",z);
x=x%y;
printf ("Nilai x =%d\n ",x);
y=x++;
printf ("Nilai y =%d\n ",y);
x=--y;
printf ("Nilai x =%d\n ",x);
getch();
return 0;
}
Posting Komentar