would you kindly help me to wright the following Program.
The program must calculate, for every integer that is being input, a code in the following way
first digit multiplied by 3
plus
second digit multiplied with the third digit
minus
fourth digit.
Thus the number 3124 (of type int) should generate the code 7, because 3*3+1*2-4=7.Use a for loop iterating NB: You may not input the digits seperately, but should input the number as a whole.(Hint: use / and % in the calculations.)