1 / 2
Dec 2017
#include<stdio.h>
int main()
{
    int a,b,c,d,e;
    scanf("%d %d %d %d %d",&a, &b, &c, &d, &e);
    if(e==42){
       printf("\n%d \n%d \n%d \n%d",a,b,c,d);
    }
     if(d==42){
       printf("\n%d \n%d \n%d",a,b,c);
    }
     if(c==42){
       printf("\n%d \n%d",a,b);
    }
     if(b==42){
       printf("\n%d",a);
    }
     if(a==42)
        return 0;
}
  • created

    Dec '17
  • last reply

    Dec '17
  • 1

    reply

  • 713

    views

  • 2

    users

Becouse Life, the Universe and Everything are [sometime] more complicated then in your code. :wink: For example:

1
2
3
4
5
6
7
8
9
10
11
12
42
33
45

Suggested Topics

Topic Category Replies Views Activity
C and C++ 0 43 Jun 29

Want to read more? Browse other topics in C and C++ or view latest topics.