Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  rohan.c
Language: C/C++
Code:
#include<stdio.h>
#include<string.h>
#include<windows.h>
int main()
{
int n,y;
printf("welcome\n");
printf("choose the options below\n");
printf("1.chat message\n2.google search\n3.play area\n");
scanf("%d",&n);
switch(n)
{
    case 1:printf("assistant\n");
    {

        printf("choose the options below\n");
        printf("5.Binary Search\n6.Calculator\n7.freenode chat\n8.game\n");
        scanf("%d",&y);
        switch(y)
        case 5:printf("binsearch");
        break;
        case 6:printf("calculator");
        break;
        case 7:system("start https://webchat.freenode.net\n");
        break;
        case 8:system ("start https://miniclip.com/games/en/\n");
        break;
    }
    case 2:system("start https://www.google.com/\n");
    break;
    case 3:system("start https://miniclip.com/games/en/\n");
    break;
    default: printf("enter valid option");
    break;
    return 0;
}
}
//gcc hey.c -o hey.o -lws2_32
Comments: