Latest Post

Write a JAVA Program to calculate and print the area of square with given height and width.

  package area; public class Area {     public static void main(String[] args) {                 int height; int width; int area; ...

Write a C++ program that calculates the final velocity of an object by taking following inputs from the user: vi = Initial velocity, a = acceleration, t = time span. Formula vf = vi + at.

  #include<iostream> using namespace std; int main() { int vi, vf, a, t; cout<< "Enter the initial velocity: "; ...

Write a C++ program that inputs radius from the user and calculates area and circumference using the formula Area = πR2 and circumference = 2πR.

  #include<iostream> using namespace std; int main() { float area, radius, circle; cout<< "Enter radius: " ; cin...

Write a C++ program that convert a person's height from inches to centimetres using the formula 2.54* height.

  #include<iostream> using namespace std; int main() { float height_in_cent; float height; cout<< "Enter height in in...

Write a C++ program that gets temperature from the user in Celsius and converts it into Fahrenheit using formula F=9/5*C+32.

  #include<iostream> using namespace std; int main() { float cel, faren; cout<< "Enter temperatue in Celcius: " ; ...

Write a program that inputs time in second and converts it into hh-mm-ss format.

  #include<iostream> using namespace std; int main() { int sec, s, m, h; cout<< "\n Enter time in second: " ; ci...

Write a C++ program that inputs base and height from the user. It calculates and displays the area of a triangle by using formula Area = 1/2 * Base * Height.

#include<iostream> using namespace std; int main() { float base, height; double area; cout<< "Enter base: " ; ...

Write a C++ program that inputs the distance traveled and the speed of vehicle. It calculates the tine required to reach the destination and displays it.

  #include<iostream> using namespace std; int main() { double distance, time, speed; cout<< "Enter the distance travele...

Write a C++ program that inputs two numbers, swap these values without using third variable and display them.

#include<iostream> using namespace std; int main() { int x, y; cout<< "\n Enter 2 Integers respectively: " ; cin...

Write a C++ program that inputs two numbers, swap the values and then displays them.

  #include<iostream> using namespace std; int main() { int a, b, temp; cout<< " Enter the First number: " ; cin&...