Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuiteDiscussions Q&R
Loop
1 Vote
5 RéponsesWhy is not working
0 Vote
3 Réponsesusing System;
namespace GoodProgrammerTest
{
class Program
{
static void Main(string[] args)
{
Console.Write("Enter Yes or No");
Console.Write(
"Do you programme every day? : ") ;
int answer = Console.ReadLine();
if (answer =="Yes")
{
Console.WriteLine(
"You will be a good programmer");
}
else
{
Console.WriteLine(
"You will not be a good programmer");
}
}
}
}
2 Votes
3 RéponsesWhen I enter two numbers the sum is displayed.. 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 Vote
4 RéponsesAujourd'hui en vedette
What’s wrong with this???
6 Votes
What's wrong with these codes?
1 Votes
What can i do with bits
4 Votes
Guys, it’s about streak
1 Votes
I don't get it
0 Votes
Chess Tournament Python code
1 Votes
Wrong HTML Code check
0 Votes
Was i wrong ?
0 Votes