diff --git a/enum.cpp b/enum.cpp index 064e52e..bb1c18b 100644 --- a/enum.cpp +++ b/enum.cpp @@ -2,17 +2,23 @@ #include using namespace std; -enum Company{ - Google = 1, Facebook, Twitter, Snapdeal, Microsoft +enum Company { + Google = 1, + Facebook, + Twitter, + Snapdeal, + Microsoft }; -int main(int argc, char const *argv[]){ +int main(int argc, char const *argv[]) { int choice; + repeat: cout << "Please enter a choice : "; cin >> choice; - switch(choice){ + + switch(choice) { case Google: cout << "You have chosen Google."; break; @@ -33,6 +39,7 @@ int main(int argc, char const *argv[]){ goto repeat; break; } - + return 0; -} \ No newline at end of file + +}