Computer Science, asked by 2Aryab11, 1 year ago

please give me output of this question no 35

Iske answer me if else if use kiya he kya ye sahi he use karna Because hume to E and U dono print karana hai but if else if me to koi ek hi print hoga, please answer. Thanks

Attachments:

2Aryab11: koi to answer kardo

Answers

Answered by jackna
0
the output will be e:4

2Aryab11: please tell me how?
jackna: sorry bro tuition time tell u later bye
2Aryab11: no problem friend
Answered by BrainlyAbir
1
Do variables lo ( dono variables if else if ke bahar hoga ) ek lo 'eCount' or ek lo 'uCount' if else if me dekho ki character e hai ya fir character u hai agar e hai to fir eCount=eCount +1 hoga agar character u hai to fir uCount =uCount+1 hoga.



I am not good at hindi and c++ because icse(in which board i read) follows java but i have a small idea about c++.

2Aryab11: but we will have to print both E and u
2Aryab11: then what can we do
jackna: then i think that the answer will be both is that unsolved
BrainlyAbir: have you seen my answer properly... i have said to take eCount and uCount outside the if else if block
2Aryab11: Okay yes, thanks
jackna: ok bro
jackna: bye
BrainlyAbir: bye
2Aryab11: thanks both of you for your time
Similar questions