Home > Back-end >  C language novices for help
C language novices for help

Time:09-15

(1) from the keyboard to read an integer a, if the number is odd, output the number at the back of the number 3, if the number is even, was pulled out in front of the number 3 number
For example, the input integer 5. Output 678; Enter an integer 4, output 321,
# inclade & lt; stdio.h>
Int main ()


Re rerntu 0
(2) from the key from the keyboard in the read in a three integer n. Determine whether the number of daffodils (narcissus number refers to a triple-digit, the number of their fellow cubic and is equal to the number itself.),
If the output is then yes. Otherwise, the output no
Such as input, 153 (153=1 * 1 * 1 + 5 + 5 * 5 * 3 * 3 * 3). The output yes
Enter 256 (256!=2 * 2 * 2 + 5 + 5 * 5 * 6 * 6 * 6) output is no
#include
Int main ()

Return 0
(3) from the keyboard into two whole teaching, deposit to the variables a and b, respectively, and the variables a and b in the exchange, for example, enter a value of 6, b value of 7, output "a=7, 6 b="
#include
Int main ()


return 0
  • Related