Esubalew
Write a function named SameNumberOfFactors that takes two positive integer arguments and returns 1 if they have the same number of factors and 0 if they have not the same number of factors.
Esubalew
☝️☝️Please anyone who can solve the above problem using C++ loop concept please help me 🙏🙏🙏🙏
...
Write a function named Same Number Of Factors that takes two positive integer arguments and returns 1 if they have the same number of factors and 0 if they have not the same number of factors.
...
☝️☝️Please 🙏🙏
...
what makes c++ different from other programming languages?
CALVIN
Would you please help modify my program on how to output numbers entered in a file on standard output...... Outputting then normally.....
Azhar
Can you help me out ? I wanna find repeated particular character in string and where it is repeated. By substr , i wrote the code but not getting it
Azhar
I can share
Dima
Can you stop writing in bold text? It makes you look ridiculously self-important
this one looks much better and is already discarded tho
Azhar
Automatic
Ludovic 'Archivist'
Automatic
Seems like bullshit to me
Esubalew
Is there any one who can solve C++ loop statement question?
Azhar
Seems like bullshit to me
Ignore..help me out
Azhar
Can i share?
Ludovic 'Archivist'
Can i share?
https://dontasktoask.com/
klimi
Is some exam going on and people are trying to cheat on it?
Ludovic 'Archivist'
Is some exam going on and people are trying to cheat on it?
Possibly, I generally try to identify those and report to the dean of their faculty as a daily act of evil
Anonymous
Hello I'm trying to read only lines from file which contains string, not the line whose starting character is '@' or blank lines... https://ideone.com/GWCneg here is the code, this code is able to avoid the lines starting with '@' but it is reading the blank lines...
Chinepun💛
LinkedIn
Do you know anyone hiring please?
Krishnaa
Something wrong with my Vscode
Krishnaa
No matter how many times I hit the 'run code' button.
Krishnaa
The output terminal is just black
Krishnaa
Showing not even the user info
Krishnaa
Anyone help me with this!!
Chinepun💛
Anyone help me with this!!
Just use the terminal to run the code
Aztec
Need help to understand line 24 please Does numPtr still hold the address of the last element when line 25 begins? https://pastebin.com/zaD4jZza
Mystic
Anyone help me with this!!
Try simple program like print anu
Anonymous
Need help to understand line 24 please Does numPtr still hold the address of the last element when line 25 begins? https://pastebin.com/zaD4jZza
It is actually one past the last element when the first for loop ends. That is why the second loop begins with a numPtr--
Krishnaa
Try simple program like print anu
I printed just a hello to check this and it worked
Krishnaa
Then I tried again to run my big code, again the same black terminal
Krishnaa
I run the first hello code again, which this time no response
danya
hello, how to put a letter in a word in an array? C
danya
can someone help me please
Andrei
Hi guys, I'm struggling with a problem in C++, maybe you can help me where is the mistake 😊 below are the informations.Write a function called sumEvenDigit that receives a number and returns the sum of the even digits from that number. The function must be called sumEvenDigit. The function must receive an int parameter and return an int that stores the sum of the even digits of the given number. Limit: This number will be greater than 0 and less than 2 000 000 001. Example: sumEvenDigit(342) will return 6 #include <iostream> #include <iostream> using namespace std; int sumDigit(int sumEvenDigit{ int s=0; while(sumEvenDigit > 0) { if((sumEvenDigit % 10) % 2 == 0) s= s + sumEvenDigit % 10; sumEvenDigit= sumEvenDigit / 10; } return s; } int main() { int n; cin>>n; cout<<sumDigit(n); return 0; }
Leovan
hello, how to put a letter in a word in an array? C
You have array of chars and need to add char in array or what do you mean?
Ольга
Hi to all. I'm not comfortable asking. But I hope for your help. I'm just starting to study C and faced a problem. I need that at the correctly entered data she passed me. I enter x = 3, y = 0. If I should skip because this is the correct data but it does not let further code. Maybe someone knows what the problem is. Thank you in advance
Ольга
Hi to all. I'm not comfortable asking. But I hope for your help. I'm just starting to study C and faced a problem. I need that at the correctly entered data she passed me. I enter x = 3, y = 0. If I should skip because this is the correct data but it does not let further code. Maybe someone knows what the problem is. Thank you in advance
#include <stdio.h> #include <math.h> int main() { float x1, x2, x3, y1, y2, y3; float P, s, ab,bc,b,a,c,ac,p,S; printf("Введіть х1\n"); scanf("%f", &x1); printf("Введіть у1\n"); scanf("%f", &y1); if (((-3)<=y1<=0) && (y1<=(x1/2)) && (((x1*x1)+(y1*y1))<=9)){ printf("+"); }else{ return 0; } printf("Введіть x2\n"); scanf("%f", &x2); printf("Введіть у2\n"); scanf("%f", &y2); if ((-3<=y2<=0) && (y2<=x2/2) && ((x2*x2)+(y2*y2)<=9)){ }else{ return 0; } printf("Введіть x3\n"); scanf("%f", &x3); printf("Введіть у3\n"); scanf("%f", &y3); if ((-3<=y3<=0) && (y3<=x3/2) && ((x3*x3)+(y3*y3)<=9)){ }else{ return 0; } if ((x2-x1)*(y3-y2)==(x3-x2)*(y2-y1)==(x3-x1)*(y2-y1)==(x2-x1)*(y3-y1)){ printf("Лежать на одній прямій"); return 0; } ab=((x2-x1)*(x2-x1))+((y2-y1)*(y2-y1)); a=sqrt(ab); bc=((x3-x2)*(x3-x2))+((y3-y2)*(y3-y2)); b=sqrt(bc); ac=((x3-x1)*(x3-x1))+((y3-y1)*(y3-y1)); c=sqrt(ac); P=a+b+c; p=P/2; S=p*(p-a)*(p-b)*(p-c); s=sqrt(S); printf("Периметр трикутника-%.2f, Площа трикутника- %.2f",P,s); return 0; }
Ольга
Yibuchiy sluchay for that naming
I do not choose the names but the task, but still why the first check for data x = 3, y = 0 does not work?
Ольга
Ohh I didn't know. Thanks for help
Leovan
Im not sure that construction is allowed ((-3)<=y1<=0)
Interesting why? I think its work like (-3 <= y1) <= 0 then -3 <= 0 is true, true <= 0 is false
PREM SAGAR
Can any one knows the clients and server in c program
aishu
Can anyone suggest a project topic for beginners
soheil
hello guys - i have question - i want start learning C programming can you offer to me best book ?
Dima
it is not the best
soheil
it is not the best
can u offer ?
IchigoKurosaki
But it is good for a beginner
soheil
But it is good for a beginner
ok tnx also some people offer to me c-how-to-program-eighth-edition-deitel is it good ?
soheil
No idea
ok - tnx for share book name 👍🏻
Suraj
Anyone can help me in palindrome question in c without using string
Anonymous
Thanks
Anonymous
Is there any C++ PDF guide that explains how each code function like for example what is #include <iostream> ,what it does etc ?
Ibrahim
Hello guys, i finish high school in few months now and i want to enroll on university but i don’t know which university programm teaches mostly about these programming languages, while searching in google it suggested me on computer science but Major, is there a university program in which starting from bachelor it teaches programming languages like C, C++, java, python, CSS, java script etc. (P.s im from east-europe)
RØB
#include<stdio.h> int main() { int a,b; char op; printf("enter any two number :"); scanf("%d%d",&a,&b); printf("enter any arithmetic op[ + - * / ] :"); scanf("%c",&op); switch (op ) { case '+': printf("%d+%d=%d",a,b,a+b); break; case '-': printf("%d-%d= %d",a,b,a-b); break; case '*': printf("%d*%d= %d",a,b,a*b); break; case '/': printf("%d/%d= %d",a,b,a/b); break; default : printf("404 ERROR"); } return 0; }
danya
hi guys,can someone help me how to fix it
danya
Fix what?
malloc error break
KEYUR
Hi
KEYUR
Hi
klimi
%Nikita
Hello, guys! I need to call a function that defined in other file. Function void foo(void) somewhere in other .c files. I wrote: extern void foo(void); //declaration Then I delete ‘extern’ keyword to make a function header. void foo(void); //it works! Then what difference between extern function header, and function header itself. And does it make sense to write: double atof(char* s); somewhere in function?