mujhse nahi ban raha hai wo sare assignment
Pseudocode assignment
Hello @ which question you are not able to do?
1st 2nd and 4th question
@abhishek2golu50 read this for 1sr question:
in ith row you have print
- Numbers from i to 2*i -1
- Numbers from 2*(i-1) to i
for(i=1: n)
{
for(j=i : 2 i - 1) cout<<j;
for(j= 2 (i-1) : i) cout<< j;
cout<<endl;
}
cant understnd sir.
pls expain in brief
Find sum of digits of a number. Say N = 3467, Output = 3 + 4 + 6 + 7 = 20
Sum of the the digits can be find in the way that you take the modulo by 10 you will get the remainder as the the example in 3467 mod 10 first you will get 7 and then after dividing by 10 you will get 346 in this way you will store the digits and take their sum.
Dry run for this you will get it.
And then also you are not able to then I will try some other method to explain.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.