Search
 
SCRIPT & CODE EXAMPLE
 

C

The closest in between

int num;
  
  int x;
  
  printf("Enter the total number of our men: ");
  scanf("%d", &num);
  
  int men[num];
  int n,n1;
  
  for(x=1; x<=num; x++){
  	
  
  printf("Men #%d: ", x);
  scanf("%d", &men[x]);
  
  //if(x>=num+1)
  
  }
  
  printf("Enemy #1: ");
  scanf("%d",&n);
  
  printf("Enemy #2: ");
  scanf("%d",&n1);  
  
   printf("
Men Cornered:
");
  
  for(x=1; x<=num; x++){
  	
  if(men[x]<=n1 && men[x]>=n){
    
   
    printf("%d ",men[x]);
  
  }}
Comment

PREVIOUS NEXT
Code Example
C :: online c compiler 
C :: email dev Microsoft Outlook 2007 items all aligned left or aligned wrong 
C :: bit wise operation 
C :: take array input from user and calc the avr in c 
C :: letter in alphabet or not 
C :: scanf autotrash c 
C :: memset c 
C :: c check if file was created 
C :: aws solution architect vs developer associate 
C :: C printf Declaration 
C :: printf n characters c 
C :: unox reclame harmonica tabs 
Dart :: flutter debug tag 
Dart :: flutter statusbar height 
Dart :: flutter listtile padding 
Dart :: flutter positioned center horizontally 
Dart :: delete shared preference flutter 
Dart :: flutter remove status bar 
Dart :: How to add a circular dot as an indicator in Flutter Tabs? 
Dart :: refresh indicator flutter 
Dart :: Round button with text and icon in flutter 
Dart :: flutter espacio entre widgets 
Dart :: flutter AnimatedOpacity 
Dart :: flutter floting action button elevation 
Dart :: flutter orientation 
Dart :: extend class flutter 
Dart :: flutter alertdialog padding 
Dart :: dart filter list 
Dart :: flutter delete file 
Dart :: how to display current date time in flutter 
ADD CONTENT
Topic
Content
Source link
Name
4+6 =