Computers and Technology

#include <stdio. h> void foo(int n, int sum)
{
int k = 0, j = 0;
if (n == 0) return;
k= n % 10;
j = n/10;
k = sum *k;
sum = sum *k + 1;
foo (j, sum);
printf ("%d", k%10);
}
int main()
{
int a = 5179, sum = 2;
foo (j, sum);
printf("%d",k%10);
}
int main()
{
int a =5179,sum=2;
foo(a, sum);
printf("%d",sum);
getchar();
}​

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 15:00, Siris420
Plz ( which is an example of a good url?
Answers: 1
image
Computers and Technology, 23.06.2019 22:20, tagerryawilson6
If i uninstall nba 2k 19 from my ps4 will my career be gone forever?
Answers: 2
image
Computers and Technology, 24.06.2019 00:40, dheydar3506
What is the error in the following pseudocode? module main() call raisetopower(2, 1.5) end module module raisetopower(real value, integer power) declare real result set result = value^power display result end module
Answers: 1
image
Computers and Technology, 24.06.2019 08:30, ladybuggirl400
@josethesolis i need can anyone text me and follow me
Answers: 1
Do you know the correct answer?
#include <stdio. h> void foo(int n, int sum)
{
int k = 0, j = 0;
if (n == 0) r...

Questions in other subjects:

Konu
Mathematics, 26.05.2021 04:00
Konu
Mathematics, 26.05.2021 04:00