Day: August 2, 2020

cprogramming

C Program to convert days into years, days, and months.

August 2, 2020

Write a program to convert entered number of days into years, months, and days.Convert days into years, months, and days.C Program to convert days into years, months, and days.Programming code to convert days into years, days, and months. C Code Write a program to convert entered number of days into years, months and days.#include <stdio.h>#include […]

Read More
cprogramming

C++ program to prints the sum, difference, products, quotient, and the remainder of two integers

August 2, 2020

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, […]

Read More
cprogramming

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

August 2, 2020

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 […]

Read More