Write a C program which takes three integer inputs a, b, k from the user. The first and the second inputs mean the range of numbers. The last one means how many numbers are created. Then create the k arbitrary numbers between the range. • If the first input is greater than the second one, request to re- input. • If your range is 101 - 120, which means [101 - 119). (excluding last one) • If the number k is negative, request to re-input. • There can be some duplicated number in output numbers. • You must satisfy the format presented below. If it is different from the format below, it will be treated incorrectly. • You can also write a printf using commented statements. - #include // for rand() or srand() 실행 화면 예시 |: 공백 : 줄바꿈 : 탭 Enter arange.:132 72J Enter a range.: 101.120J Enter a number : 20 The results... 106 109 116.112.114.109.108.106.104.112.102_110_104.117.16

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

C programming

Write a C program which takes three integer inputs a, b, k from the
user. The first and the second inputs mean the range of numbers. The
last one means how many numbers are created. Then create the k
arbitrary numbers between the range.
• If the first input is greater than the second one, request to re-
input.
If your range is 101 - 120, which means [101 - 119]. (excluding
last one)
• If the number k is negative, request to re-input.
• There can be some duplicated number in output numbers.
• You must satisfy the format presented below. If it is different
from the format below, it will be treated incorrectly.
• You can also write a printf using commented statements.
#include <stdlib.h> // for rand() or srand()
실행 화면 예시
: 공백
줄바꿈
탭
Enter a range : 132 72J
Enter a range : 101.120
Enter a number : 20
The_results...d
106 109.116.112.114.109.108.106.104.112.102.110.104.117.16
..
Transcribed Image Text:Write a C program which takes three integer inputs a, b, k from the user. The first and the second inputs mean the range of numbers. The last one means how many numbers are created. Then create the k arbitrary numbers between the range. • If the first input is greater than the second one, request to re- input. If your range is 101 - 120, which means [101 - 119]. (excluding last one) • If the number k is negative, request to re-input. • There can be some duplicated number in output numbers. • You must satisfy the format presented below. If it is different from the format below, it will be treated incorrectly. • You can also write a printf using commented statements. #include <stdlib.h> // for rand() or srand() 실행 화면 예시 : 공백 줄바꿈 탭 Enter a range : 132 72J Enter a range : 101.120 Enter a number : 20 The_results...d 106 109.116.112.114.109.108.106.104.112.102.110.104.117.16 ..
Expert Solution
steps

Step by step

Solved in 4 steps with 1 images

Blurred answer
Knowledge Booster
Introduction to computer system
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education