Discussions Events Study Material Jobs
Write a Program that inputs a number and displays its predecessor and successor number using functions

Search Books

For Better Search Results Only Write Subject OR Topic Name Like ( Math , Physics , Database , Algorithm ).



Write a Program that inputs a number and displays its predecessor and successor number using functions

Write a Program that inputs a number and displays its predecessor and successor number using functions

Description: #include
#include

void value (int);

void main ( )
{
clrscr ( );
int x;
cout << "Enter an integer: ";
cin >>x;
value (x);
getch ( );
}

void value (int x)
{
int p, n;
p = x – 1;
n = x + 1;
cout << "The number before "< cout << "The number after "< }


Please Login / Signup to Continue Download Study Material


Login to Continue Download
Disclaimer

Uniwaly does not host or upload any files including books, notes, past papers, or other educational materials. All content is provided through publicly available links from third-party websites such as Google Drive, Dropbox, and other file-sharing platforms. We respect copyright laws and recommend users to only download content that is freely available or shared with permission. If you believe any file violates copyright, please contact us immediately for review.


More Study Materials

The Crusades: The authoritative history of the war for the Holy Land

Polymer Physics

0131 Micro Economics

Lecture 3 - What Kinds of Patterns Can Be Mined? - Data Mining

Digital System Lab

59H2024

Chemistry Chapter 1 Part 3 ECAT Entry Test Preparation

Lab Manuals - Experiment - Study of Transistor’s Characteristics Common Emitter

Chemistry Chapter 1 Part 2 ECAT Entry Test Preparation

Lecture 4 - Adhesive bonding , surface treatment and paints - Manufacturing Processes

Ultimate-Travelist

A History of the World

Chemistry Chapter 2 Part 1 ECAT Entry Test Preparation

Algorithmic Mathematics

29J2024

3J2024

51H2024

DC Power Supply Circuits 1 Output Result

Application of Friction - Wedges & Screws - Engineering Statics

Equilibrium: Mechanical System Isolation - Engineering Statics

English All Chapters - ECAT Entry Test Preparation

Slides - Week 3 and 4 - Fundamentals of Thermal Sciences

Power Electronics - Course intro with CLOs - EE template

Building Arduino Projects for the Internet of Things

Assignment 8611 Allama Iqbal Open University Assignment

Computer Graphics Guess Based on Old Papers

Lab Graphs - Book 1 EDC 1.1 Microsoft Excel File - Electric Devices

Lecture 2 - Distributed Computing Systems - Distributed Database Design

Arduino Based Hardware & Programming UET Lahore ( FSD Campus )

Lab Manuals - Experiment - Study of Transistor’s Characteristics

The Politics of Bureaucracy

38H2024

Microsoft® SQL Server® 2012 Bible by Adam Jorgensen

Chemistry for Pharmacy Students: General, Organic and Natural Product Chemistry 2007 by Satyajit Sarker & Lutfun Nahar

11J2025

To study full wave rectification.

How to make G-code File

Solutions Manual of Thermodynamics

Social Media Marketing by Evans, Dave

Digital Logic and Computer Design by M. Morris Mano 2nd Edition