0

What is meant by "split multiple lines into seperate line"?

18th Aug 2017, 3:59 PM
Vignesh Pai
15 Antworten
0
s
19th Aug 2017, 3:24 PM
Vignesh Pai
0
ok.thanks
19th Aug 2017, 3:45 PM
Vignesh Pai
0
when I gave input,in output it shows that time limit exeeded🤔why?
21st Aug 2017, 2:59 AM
Vignesh Pai
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); }
21st Aug 2017, 3:15 AM
Vignesh Pai
0
i will send u again.wait.
21st Aug 2017, 3:18 AM
Vignesh Pai
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); }
21st Aug 2017, 3:18 AM
Vignesh Pai
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.
21st Aug 2017, 3:24 AM
Vignesh Pai
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); }
21st Aug 2017, 3:26 AM
Vignesh Pai
0
Now it is correct.My intension is to find the sum of square of individual digits in a number.
21st Aug 2017, 3:27 AM
Vignesh Pai
0
it not shows the what I gave.it just shows the output when it executed.The app itself buildup like that?
21st Aug 2017, 3:30 AM
Vignesh Pai
0
what is the code to perform union and intersection of 2 sets os elements?
24th Aug 2017, 4:29 PM
Vignesh Pai