fork download
  1. #include <stdio.h>
  2. float a, b, c;
  3. int main(void) {
  4. printf("Enter three numbers:\n");
  5. scanf("%f %f %f", &a, &b, &c);
  6. if(a==b||b==c||a==c){
  7. a+=5, b+=5, c+=5;
  8. printf("Due to some special circumstances your numbers now are: %f %f %f", a, b, c);
  9. }
  10. else {
  11. printf("None of your numbers are equal");
  12. }
  13. return 0;
  14. }
Success #stdin #stdout 0s 5380KB
stdin
1 1 1
stdout
Enter three numbers:
Due to some special circumstances your numbers now are: 6.000000 6.000000 6.000000