Created
July 28, 2019 23:35
-
-
Save rombyar/c74c5b0ee5105f263a11eb0f457407b0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
main() | |
{ | |
int a, b; | |
float hasil; | |
printf("\n\tSilakan masukkan bilangan pertama: "); | |
scanf("%d", &a); | |
printf("\tSilakan masukkan bilangan kedua: ");scanf("%d",&b); | |
printf("\n\tHasilnya ... \n"); | |
printf("\t%d + %d = %d \n", a, b, a+b);sleep(100); | |
printf("\t%d - %d = %d \n", a, b, a-b);sleep(100); | |
printf("\t%d * %d = %d \n", a, b, a*b);sleep(100); | |
printf("\t%d / %d = %.3f \n", a, b, (float) a/b);sleep(100); | |
printf("\t%d mod %d = %d\n", a, b, (int) a%b);sleep(100); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment