0
What is meant by "split multiple lines into seperate line"?
15 Answers
0
s
0
ok.thanks
0
when I gave input,in output it shows that time limit exeeded🤔why?
0
#include <iostream>
#include<conio.h>
using namespace std;
void sumsq(int);
void sumsq(int x)
{
int t,sum=0;
while(x!=0)
{
t=x/10;
sum=sum+(t*t);
}
cout<<sum;
}
int main()
{
int x;
cout<<"enter number";
cin>>x;
sumsq(x);
}
0
i will send u again.wait.
0
#include <iostream>
#include<conio.h>
using namespace std;
void sumsq(int);
void sumsq(int x)
{
int t,sum=0;
while(x!=0)
{
t=x/10;
sum=sum+(t*t);
}
cout<<sum;
}
int main()
{
int x;
cout<<"enter number";
cin>>x;
sumsq(x);
}
0
Code is wrong.thats why it is not executed.I get the correct answer.but it not shows the input what I gave,when it executed
for example
If I enter the number 25
It's output is
enter number 29
but 29 is answer.
0
#include <iostream>
#include<conio.h>
using namespace std;
void sumsq(int);
void sumsq(int x)
{
int t,sum=0;
while(x!=0)
{
t=x%10;
sum=sum+(t*t);
x=x/10;
}
cout<<sum;
}
int main()
{
int x;
cout<<"enter number";
cin>>x;
sumsq(x);
}
0
Now it is correct.My intension is to find the sum of square of individual digits in a number.
0
it not shows the what I gave.it just shows the output when it executed.The app itself buildup like that?
0
what is the code to perform union and intersection of 2 sets os elements?