import java.util.*;
class Demo
{
public static void main(String args[])
{
System.out.println("Even Numbers Are ");
for (int i=1;i<=20;i++)
{
System.out.print(" "+(2*i));
}
System.out.println("\n \n Odd Numbers Are ");
for(int j=0;j<=20;j++)
{
System.out.print(" "+((2*j)+1));
}
}
}
With repeated multiplication.
If you really wanted to do this, you could simulate multiplication with repeated addition.
Compare the first two numbers with the ternary operator. Store the result in a temporary variable. Compare the temporary variable with the third number, again using the ternary operator.
#include<stdio.h> #include<conio.h> void main() { int a,b,multi; clrscr(); printf("enter a value for a and b"); scanf("%d%d",&a,&b); multi=a*b; printf("the result is %d", multi); getch() }
I will not use operator overloading in C# to do anything. Operator overloading may lead to one operator has more than 1 semantic meaning. For example, we know 1 + 2 yields 3, and "1" + 2 yields "12". I do not like this overloading of the operator + being used for addition in Number hierarchy, while as the concatenation in strings. That is, one operator (+) has 2 significant semantics.And the question "find largest of two object" is too vague - what do you mean "largest"? and object? We know apple and orange are 2 objects, but how do you compare them, and find the largest one?????? (size, price or what???)
With repeated multiplication.
If you really wanted to do this, you could simulate multiplication with repeated addition.
Compare the first two numbers with the ternary operator. Store the result in a temporary variable. Compare the temporary variable with the third number, again using the ternary operator.
By using repeated addition. Consider two numbers a and b. If you want to find a*b then you can add the numbers repeatedly in a loop to get the product. Eg:product = a;for( i=1; i
#include<stdio.h> #include<conio.h> void main() { int a,b,multi; clrscr(); printf("enter a value for a and b"); scanf("%d%d",&a,&b); multi=a*b; printf("the result is %d", multi); getch() }
Get your friends to ask her without using your name.
there is no way else to get a combee without using a honey tree
find it in glossary do your homework without using this
I will not use operator overloading in C# to do anything. Operator overloading may lead to one operator has more than 1 semantic meaning. For example, we know 1 + 2 yields 3, and "1" + 2 yields "12". I do not like this overloading of the operator + being used for addition in Number hierarchy, while as the concatenation in strings. That is, one operator (+) has 2 significant semantics.And the question "find largest of two object" is too vague - what do you mean "largest"? and object? We know apple and orange are 2 objects, but how do you compare them, and find the largest one?????? (size, price or what???)
www.monster.com and www.careerbuilder.com will help you find job opportunities for a crane operator in your area.
Darkrai.
max = a > b ? a : b; max = max > c ? max : c;