New course! Every coder should learn Generative AI!
Try a free lessonQ&A Discussions
Why it isn't working?
0 Votes
1 AnswerMatrix I need help java
0 Votes
2 AnswersWrite a python program which will ask user to enter 3 numbers. Your program will output the sum and average of these 3numbers.your program will also output the largest number, the smallest number of these three. For exampleif user enter 2,10,3 than your program will output,
For number 2,10,3 sum is 15,average is 5,the largest number is 10 and the smallest number is 2.
-1 Vote
4 AnswersWhen I enter two numbers the sum comes.. but when I input character as yes not y... Then it goes into an infinite loop... can anyone explain why?
int a,b;
char ch;
do
{
cout<<"Enter two numbers: ";
cin>>a>>b;
cout<<"The sum is "<<a+b
<<"\nDo you want to try again (y/n): ";
cin>>ch;
}while(ch=='Y'||ch=='y');
0 Votes
2 AnswersC++ for loop+break question
2 Votes
2 AnswersHot today
Can we convert website into app
2 Votes
Help! Images! HTML!
0 Votes
I need help with python code
0 Votes
what concept print(0b1010)
0 Votes
Error
0 Votes