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/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Old Sites/Teachers/icd/lantzos/Notes/Programming_I/refresh.c
#include <stdio.h>
#include <conio.h>

main()
{
  int log[5][2],i,j,sum,min,max,thesi;

  // INSERT DATA

  for(i=0;i<5;i++)
  { printf("\n Account Elements #%d",i+1);
    printf("\n===================");
    for(j=0;j<2;j++)
      {
        if(j==0)
          { printf("\nGive Account number # ");
            scanf("%d",&log[i][j]);
          }
        else
          { printf("\nGive Ammount Euro :");
            scanf("%d",&log[i][j]);
          }
      }
  }

  // DISPLAY DATA

  printf("\n       Bank Data");
  printf("\n======================");
  printf("\nAccount       Ammount");
  for(i=0;i<5;i++)
  { printf("\n");
    for(j=0;j<2;j++)
      {
         printf("#%d\t\t",log[i][j]);
      }
  }
  // DISPLAY SUM

  printf("\n======================");
  sum = 0;
  for(i=0;i<5;i++)
      sum =sum +log[i][1];
  printf("\n    TOTAL = %d", sum);


  // Find Min

  min = log[0][1];
  thesi=0;
  for(i=0;i<5;i++)
  {
    if(log[i][1] < min)
    {
      min = log[i][1];
      thesi = i;
    }
  }
  printf("\n  Min Deposit from account #%d with deposit of %d Euro", log[thesi][0], log[thesi][1]);

  // Find Max

  max = log[0][1];
  thesi=0;
  for(i=0;i<5;i++)
  {
    if(log[i][1] > max)
    {
      max = log[i][1];
      thesi = i;
    }
  }
  printf("\n  Max Deposit from account #%d with deposit of %d Euro", log[thesi][0], log[thesi][1]);




  getch();
}

Youez - 2016 - github.com/yon3zu
LinuXploit