Dropdowns

import java.util.*; /** * Define a class employee with the following members to compute the salary slip of an employee. * @author (Afaq) */ public class Employee { int empno; String name; float salary, hra, da, it, gp; Employee() { empno=0; name = “”; salary = 0.0f; hra = 0.0f; da = 0.0f; it = […]

calculate employee salary in java creating employee payroll program in java employee class employee payroll program in java employee payroll program in java in hindi employee payroll program in java in urdu employee payroll system employee salary employee salary program how to create employee payroll program in java java employee salary program java employee salary program filipino java program to calculate salary of employees salary in java

import java.util.Scanner; /** * * @author AFAQ */ public class DecimalToBinary { public static void main(String[] args) { int decimal; Scanner sc = new Scanner(System.in); System.out.print(“Enter decimal number=”); decimal = sc.nextInt(); String binary = “”; while (decimal > 0) { binary= decimal % 2 + binary ; decimal = decimal / 2; } System.out.println(“Binary=”+binary); } […]

binary to decimal c program to convert decimal to binary convert decimal number to binary number convert decimal to binary in java decimal to binary decimal to binary conversion decimal to binary conversion in java decimal to binary in java decimal to binary java program decimal to binary program using java how to convert decimal to binary in java java program to convert decimal to binary learn java program to convert decimal numbers to binary numbers in c program to convert decimal to binary

import java.util.Scanner; /** * * @author AFAQ */ public class BinaryToDecimal { public static void main(String[] args) { int binary; Scanner sc = new Scanner(System.in); System.out.print(“Enter binary number=”); binary = sc.nextInt(); int decimal = 0; int n = 0; while (true) { if (binary == 0) { break; } else { int temp = binary […]

binary number binary to decimal binary to decimal conversion binary to decimal conversion method in java binary to decimal program in java c program to convert decimal to binary decimal to binary decimal to binary conversion decimal to binary conversion in java decimal to binary java decimal to binary java program how to convert binary to decimal in java how to convert binary to decimal in java program java tutorials program decimal to binary in c program to convert decimal to binary

/*Program to find biggest number from three given numbers*/ #include<stdio.h> int main(void) { int a,b,c,big; printf(“Enter three numbers : “); scanf(“%d%d%d”, &a, &b, &c); if(a>b) { if(a>c) big=a; else big=c; } else { if(b>c) big=b; else big=c; } printf(“Biggest number is %d\n”,big); return 0; }/*End of main()*/ Output: Enter three numbers : 5 10 14 […]

c language tutorial learn c language study c language

/*Program to find quotient and remainder*/ #include<stdio.h> int main(void) { int x,y,quo,rem; printf(“Enter two numbers : “); scanf(“%d%d”,&x,&y); if(y) /*if y is non-zero*/ { quo=x/y; rem=x%y; printf(“Quotient=%d, Remainder=%d\n”,quo,rem); } else printf(“Divide by zero error\n”); return 0; } Output: Enter two numbers : 25 7 Quotient=3, Remainder=4

c language tutorial learn c language study c language

/*Program to print a message if negative number is entered */ #include<stdio.h> int main(void) { int num; printf(“Enter a number : “); scanf(“%d”,&num); if(num<0) { printf(“Number entered is negative\n”); num=-num; } printf(“Value of num is : %d\n”, num); return 0; } Output: Enter a number : -15 Number entered is negative Value of num is […]

c language tutorial learn c language study c language

/*Program to print whether a number is even or odd */ #include<stdio.h> int main(void) { int num; printf(“Enter a number : “); scanf(“%d”,&num); if(num%2 == 0) /*test for even */ printf(“Number is even\n”); else { printf(“Number is odd\n”); num*=2; printf(“Now the number is %d\n”,num); } return 0; } Output: Enter a number : 15 Number […]

c language tutorial learn c language study c language

/*Program to print the bigger number*/ #include<stdio.h> int main(void) { int a,b; printf(“Enter two numbers : “); scanf(“%d%d”,&a,&b); if(a>b) printf(“Bigger number=%d\n”,a); else printf(“Bigger number=%d\n”,b); return 0; } Output: Enter two numbers : 5 15 Bigger number=15

c language tutorial learn c language study c language
On this page