Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cstdlib>
- #include <iostream>
- #include <ctime>
- using namespace std;
- int main(int argc, char *argv[])
- {
- int language;
- srand(time(0));
- language = rand () % 6 + 1;
- switch (language) {
- case '1':
- cout<<"hello world !";
- break;
- case '2':
- cout<<"hola mundo";
- break;
- }
- system("PAUSE"); // For Dev++ under Windows
- return (EXIT_SUCCESS);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement