Created
December 29, 2018 13:05
-
-
Save IhwanID/530e3c1bb78f060381a935be2d5a3ff3 to your computer and use it in GitHub Desktop.
Daspro - STMIK Sumedang
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
#include <stdio.h> | |
int | |
main () | |
{ | |
int Luas; | |
printf ("Pilihan Luas bangun datar (1-3) : "); | |
scanf ("%d", &Luas); | |
switch (Luas) | |
{ | |
case 1: | |
printf ("Luas segitiga \n"); | |
break; | |
case 2: | |
printf ("Luas persegi panjang \n"); | |
break; | |
case 3: | |
printf ("Luas Lingkaran \n"); | |
break; | |
default: | |
printf ("anda salah memilih \n"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment