Java Program to Add Two Complex Numbers
public class ComplexNumber{ double real, img; ComplexNumber(double r, double i){ this.real = r; this.img = i; } public static
Read morepublic class ComplexNumber{ double real, img; ComplexNumber(double r, double i){ this.real = r; this.img = i; } public static
Read morepublic class JavaExample { public static void main(String[] args) { int number = 2, p = 5; long result =
Read morepublic class JavaExm { public void calculate(int p, int t, double r, int n) { double amount = p *
Read morepublic class AddTwoNumbers { public static void main(String[] args) { int num1 = 15, num2 = 20, sum; sum =
Read moreHello World Program class HelloWorld { public static void main(String args[]) { System.out.println(“Hello World”); } }
Read more#include <stdio.h> largest_element(int arr[], int num) { int i, max_element; max_element = arr[0]; for (i = 1; i < num;
Read more#include <stdio.h> void sort_numbers_ascending(int number[], int count) { int temp, i, j, k; for (j = 0; j <
Read more#include <stdio.h> int main() { char str[100],i; printf(“Enter a string: \n”); scanf(“%s”,str); for(i=0; str[i]!=’\0′; ++i); printf(“\nLength of input string: %d”,i);
Read more#include<stdio.h> #include<math.h> int main() { int triangle_side; float triangle_area, temp_variable; printf(“\nEnter the Side of the triangle:”); scanf(“%d”,&triangle_side); temp_variable = sqrt(3)
Read more#include <stdio.h> int main() { int circle_radius; float PI_VALUE=3.14, circle_area, circle_circumf; printf(“\nEnter radius of circle: “); scanf(“%d”,&circle_radius); circle_area = PI_VALUE
Read more