Program: import java.util.Scanner; public class PalindromeProgram { public static void main(String[] args) { int number,remainder,temp,i,sum=0; System.out.print("\n Please enter a number ...
Read More
Program: #include<stdio.h> #include<conio.h> void main() { int number,remainder,temp,i,sum=0; clrscr(); printf("\n Please enter a number = "); scanf("%d",&number); temp=number; while(temp!=0) { ...
Read More
Program: public class Greatestnumber { public static void main(String[] args) { int num=4,num1=20,num2=5; String answer; System.out.println("\n******* Finding Greatest ******* \n"); ...
Read More
Program: #include<stdio.h> #include<conio.h> void main() { int num=4,num1=20,num2=5; clrscr(); printf("\n******* Finding Greatest ******* \n"); if(num>num1) { (num>num2)?printf("\n%d is Greatest \n",num):printf("\n%d ...
Read More
Program: import java.util.Scanner; public class Swapwithouttemp { public static void main(String[] args) { int number, number1; Scanner ed = new ...
Read More
Program: #include<stdio.h> #include<conio.h> void main() { int num,num1; clrscr(); printf("please enter the values : "); printf("\n First number = "); ...
Read More
Program: import java.util.Scanner; public class Swapwithtemp { public static void main(String[] args) { int number, number1,temp; Scanner ed = new ...
Read More
Program: #include<stdio.h> #include<conio.h> void main() { int number, number1,temp; clrscr(); printf("\n Enter two numbers:\n First number = "); scanf("%d",&number); printf("\n ...
Read More
Program: import java.util.*; public class EvenorOdd { public static void main(String[] args) { int number; String answer; Scanner ed = ...
Read More
Conditional operator has been used in the given program. Program: #include<stdio.h> #include<conio.h> void main() { int number; clrscr(); printf("\nPlease enter ...
Read More