Discussions Events Study Material Jobs
Write a Program that inputs a number in main function and passes the number to a function. The function displays table of that number

Search Books

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


Write a Program that inputs a number in main function and passes the number to a function. The function displays table of that number

Write a Program that inputs a number in main function and passes the number to a function. The function displays table of that number

Description: #include #include void table (int n); void main ( ) { int num; clrscr ( ); cout <<”Enter a number: “; cin >> num; table(num); getch ( ); } void table (int n) { int c; for (c = 1; c<=10; c++) { cout<<” * “ << c << “ = “ << n * c <
Output:
Enter a number: 3
3 * 1 = 3
3 * 2 = 6
3 * 3 = 9
3 * 4 = 12
3 * 5 = 15
3 * 6 = 18
3 * 7 = 21
3 * 8 = 24
3 * 9 = 27
3 * 10 = 30


Please Login / Signup to Continue Download Study Material


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

Android Programming Tutorials

chapter-20 the first law of thermodynamics

29G2024

Poetry of Physics and the Physics of Poetry by Logan, Robert K.

Urdu Manual Book for PSER Door to Door Survey

Lab : Microprocessor systems

Introduction to SAT II Physics

Slides - Week 5 , 6 , 7 and 8 - Fundamentals of Thermal Sciences

48E2024

42J2024

Labs : Digital Signal Processing

Internet of Things Hardware Development

Lecture 9 - Decision Trees - Data Mining

Improve Your English: English in Everyday Life

0402 Economics

Lecture 13 - Distributed Transaction Processing and Concurrency Control - Distributed Database Design

Slides - Lecture 4 - Applied Thermodynamics

Equilibrium: Mechanical System Isolation - Engineering Statics

43J2024

General Knowledge All About Pakistan

62D2024

Lab Manuals - Experiment - Full Wave Rectifier

Lecture 11 - Clustering - Data Mining

Solution : Calculus 5th Edition - James Stewart

Islamiat Tarjama Notes UET

Labs Power Electronics

Data Analysis with Microsoft Excel by Kenneth N. Berk

Lecture 12 - Query Decomposition and Data localization - Distributed Database Design

0413 Sociology - II

41H2024

Building Arduino Projects for the Internet of Things

Physics of the Impossible

41H2020

0417 PAKISTAN STUDIES (C)

Teacher Education in Physics

Digital Signal Processing - Principles , Algorithms and Applications Proakis & Dimitris G. Manolakis

Lecture 5 - Types of Distributed Database - Distributed Database Design

Potential Energy and Stability - Engineering Statics

3J2024

Politics: The Basics, 4th Edition