21) What should be the value of 'x', to get the following output:
S1 = 133
S2 = 65
1 void main()
2 {
3 inti, n = x, s1 = 0, S2 = 0;
4 for (i = n; i >= 0; i--)
5 {
6 if (i%3 == 0)
s1 += 1
8
else if (i%2 == 0)
$2 += 1
10
else if (i % 5 == 0)
11
S1 = 1
12 else
13
s2 = 1
14 )
15 printf ("S1 = %d\n", s1);
16 printf ("S2 - %d\n", s2);
17)
9
Answers
Answered by
0
Answer:
sorry but I don't know the answer
Similar questions
Science,
2 months ago
Sociology,
2 months ago
Economy,
2 months ago
India Languages,
5 months ago
Math,
5 months ago
English,
11 months ago
CBSE BOARD X,
11 months ago