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
English,
1 month ago
Science,
1 month ago
English,
1 month ago
India Languages,
3 months ago
Math,
3 months ago
English,
9 months ago
CBSE BOARD X,
9 months ago