A
Aravindh
A 'C' program that takes two numbers and produces two other numbers.
None of the four numbers must be similar.
printf ("%d%d", & num1, & num2) ;
if (num1 > num2) {
num1 ++ ; num2 -- ;
}
else {
num1 --; num2 ++ ;
}
printf ("%d%d\n", num1, num2) ;
Any better ideas ?
None of the four numbers must be similar.
printf ("%d%d", & num1, & num2) ;
if (num1 > num2) {
num1 ++ ; num2 -- ;
}
else {
num1 --; num2 ++ ;
}
printf ("%d%d\n", num1, num2) ;
Any better ideas ?