Computer Science, asked by rakhijaiswal0608, 3 months ago

Write a program in Java to input a number and find the sum and the product of the digits of the number entered .the number should be inputted by a parameter input only​

Answers

Answered by gouravbansiwal86
0

Answer:

1

#include <bits/stdc++.h>

using namespace std;

4 class Test

5

6

public:

7

Test() { cout << "Constructor called" :)

8

9

10 int main()

11

12

Test *t = (Test *) malloc(sizeof (Test));

13

return 0;

)

15

1

#include <bits/stdc++.h>

using namespace std;

4 class Test

5

6

public:

7

Test() { cout << "Constructor called" :)

8

9

10 int main()

11

12

Test *t = (Test *) malloc(sizeof (Test));

13

return 0;

)

15

Similar questions