Обсуждения
Output of C++ code
0 голосов
2 ответовCan anyone explain this code.
2 голосов
1 ответIn the code below the output is 2. This code is used in a challenge and I get an error when I select the answer 2. It accepts as correct the answer 1 which I believe is wrong. If you agree please thumbs up.
If you find any other errors please post them here!
#include <iostream>
using namespace std;
int main()
{
for(int i=1; i>=1; i++) {
if(i<1 || i>1){
cout << i;
break;
}
}
return 0;
}
8 голосов
8 ответовi am getting error anyone can help
0 голосов
5 ответовPublic static vs prívate static? C#
3 голосов
2 ответовWhat's Wrong With My Code??
0 голосов
2 ответовما هو الخطأ فى هذا الكود
0 голосов
2 ответовWhy this code doesn't go?
1 голос
1 ответWhy is not working
0 голосов
3 ответовusing 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 голосов
3 ответовWhy we use c++ for programming??
2 голосов
2 ответовАктуальное сегодня
New code
1 Votes
Clean Code
3 Votes
How would you solve the part of the C# Intermediate code project that requires operator overloading?
0 Votes
Hello Everyone
0 Votes