Обсуждения
Chess tournment
0 голосов
2 ответовWhat is "Global Memory" in C++?
0 голосов
2 ответовPlease explain the code and its output
-2 голосов
1 ответWrite a static method called weave that that takes two integers as parameters and that returns the result of weaving their digits together to form a single integer. Two numbers x and y are weaved together as follows. The last pair of digits in the result should be the last digit of x followed by the last digit of y. The second-to-the-last pair of digits in the result should be the second-to-the-last digit of x followed by the second-to-the-last digit of y. And so on.
0 голосов
13 ответовOutput of C++ code
0 голосов
2 ответовHow to create dynamic websites?
0 голосов
2 ответовCan someone explain this code to me....
class ReverseNumberDemo
{ public static void main(String args[]) {
int num=123456789;
int reversenum =0;
while( num != 0 ) {
reversenum = reversenum * 10;
reversenum = reversenum + num%10;
num = num/10; }
System.out.println("Reverse of specified number is: "+reversenum);
}
}
the thing I don't get is the reversenum part......isn't reversenum=0 so wouldn't reversenum*10=0
0 голосов
8 ответовIt dawned on me! #3
1 голос
1 ответhelp about classes in c++
1 голос
2 ответовwhy we use position_static?
0 голосов
1 ответHtml layouts
0 голосов
3 ответовwhere's the error ?
-3 голосов
2 ответов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 ответовclass and object
1 голос
1 ответWhye error???
0 голосов
1 ответI am confused on this
0 голосов
1 ответHungry wolves and fishing.
-1 голос
1 ответpublic class Vehicle {
int maxSpeed;
int wheels;
String color;
double fuelCapacity;
void horn() {
System.out.println("Beep!");
}
}
class MyClass {
public static void main(String[ ] args) {
Vehicle v1 = new Vehicle();
Vehicle v2 = new Vehicle();
v1.color = "red";
v2.horn();
System.out.println(v1);
}
}
Explain its outcome. I am unable to get the last line of outcome.
-1 голос
2 ответовjava learning
0 голосов
1 ответWhy not working
-4 голосов
4 ответовАктуальное сегодня
Best Python Calculator Code
1 Votes
New code
1 Votes
Clean Code
3 Votes
Hello Everyone
0 Votes
How would you solve the part of the C# Intermediate code project that requires operator overloading?
0 Votes
Installation
0 Votes