403Webshell
Server IP : 195.130.67.5  /  Your IP : 216.73.217.154
Web Server : Microsoft-IIS/10.0
System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586
User : IUSR ( 0)
PHP Version : 7.4.19
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /Old Sites/Teachers/icd/lantzos/Notes/Programming_I_Theory/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Old Sites/Teachers/icd/lantzos/Notes/Programming_I_Theory/test_solution(11_11_08).c
#include <stdio.h>

main()
{
    int choice,hot=0, regular=0, cold=0, freeze=0, days=0;
    do
    {   clrscr();
        printf("        MENU \n");
        printf("=====================\n");
        printf(" 1. Hot day\n");
        printf(" 2. Regular day\n");
        printf(" 3. Cold day\n");
        printf(" 4. Freezing day\n");
        printf(" 5. Exit\n\n");
        printf("   Choice :");
        scanf("%d",&choice);

        switch(choice)
        {
          case 1:   hot++;
                    days++;
                    break;
          case 2:   regular++;
                    days++;
                    break;
          case 3:   cold++;
                    days++;
                    break;
          case 4:   freeze++;
                    days++;
                    break;
        }

    }while(choice != 5);
    printf(" Final Results \n");
    printf("===================\n");
    printf(" Hot days      = %d\n",hot);
    printf(" Regular days  = %d\n",regular);
    printf(" Cold days     = %d\n",cold);
    printf(" Freezing days = %d\n",freeze);
    printf(" Total number of days  = %d",days);
    getch();
}


Youez - 2016 - github.com/yon3zu
LinuXploit