#include <stdio. h>
void foo(int n, int sum)
{
int k = 0, j = 0;
if (n == 0) r...
![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 16.06.2021 08:20 mahmudabiazp3ekot
#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();
}
![ansver](/tpl/images/cats/User.png)
Answers: 2
Another question on Computers and Technology
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 21:30
The graph shows median weekly earnings for full-time workers according to education level. which can you not conclude?
Answers: 2
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 09:30
:you areto design the controller for alight that functions both as an ordinary light and also as a motion activated light and alarm. a.if the manual switch s is on, then the light l is on. b.besides the manual switch, there is a motion detector, m1, which activatesthis light.c.if motion is detected but the light is on anyway because s is on, only then a secondoutput a, an alarm, is turned on. d.the disable switch, d, disables the motion activated light and alarmbut leaves manual control operation of the light using switch s.(i)read the problem statement and clearly identify the inputs and outputs for the circuit you are designing. (ii)create the truth table for this system; include the light, alarm, switch, disable, and the motion sensor.(iii)draw a schematic of this system.
Answers: 1
![question](/tpl/images/cats/informatica.png)
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 24.06.2019 09:40
Healthy study habits are best described as
Answers: 1
You know the right answer?
Questions
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/fizika.png)
Physics, 29.11.2021 01:10
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/biologiya.png)
Biology, 29.11.2021 01:20
![question](/tpl/images/cats/en.png)
English, 29.11.2021 01:20
![question](/tpl/images/cats/mat.png)
Mathematics, 29.11.2021 01:20
![question](/tpl/images/cats/mat.png)
Mathematics, 29.11.2021 01:20
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/biologiya.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 29.11.2021 01:20
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 29.11.2021 01:20
![question](/tpl/images/cats/ekonomika.png)
![question](/tpl/images/cats/biologiya.png)
Biology, 29.11.2021 01:20
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/biologiya.png)
Biology, 29.11.2021 01:20
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/himiya.png)
Chemistry, 29.11.2021 01:20