cprogramming Programming

C++ Prints the Sum, Difference, Products, Quotient Remainder

  • August 2, 2020
  • 0 Comments

Write a program that prints the sum, difference, products, quotient, and the remainder of two integers with values that are inputted. Write an object-oriented program to find the sum, difference, products, quotient, and the remainder of two integers with a value that is inputted. C++ Source Code #include<iostream.h>#include<conio.h>void main(){int x, y, sum, pro, dif, rem, […]

cprogramming Programming

C++ Program to Insert Ten Elements in Array and Sort Them

  • August 2, 2020
  • 0 Comments

Insert ten elements in an array. Write a program using the function for arranging ten entered numbers into ascending as well as descending order and display the order along with the numbers entered passing array as an argument in the function. Source Code,  #include<iostream.h>#include<conio.h>void sort(int a[],int n);void main(){clrscr();int n,a[10];cout<<“enter number of elements in array:”;cin>>n;cout<<“n enter […]