Technology has advanced to the point where programming has become an essential part of our lives. We use software and applications for communication, entertainment, education, and work, and these are all built on programming languages.
Program to print odd numbers less than 20 using for loop.
Get link
Facebook
X
Pinterest
Email
Other Apps
Explanation,
Here, i is initialized with value and in every loop, value in i increase by 2 until the condition gets false.
H eader Files contain definitions of functions and variables, which is imported or used into any C program by using pre-processor i.e, #include statement. Header files have an extension ".h" which contains C function declaration and macro definition. For example, stdio.h is a header file contains declaration of input and output functions available in C. Similarly math.h contains declarations of mathematical functions available in C.
Here, two numbers are requested from the user and placed in 'a' and 'b' variable using scanf. The value of the variable are checked using 'if' structure. If value in a is greater than value of a will be displayed as greater else value of b is displayed as greater number in comparision. Output
a. i. Computer Network-------------------> Resource sharing ii. Network OS ---------------------------> Windows NT iii. Transmission Channel ------------------> UTP iv. Protocol -----------------------------------> HTTP b. i. Wifi----------------------------------------> Transmission Media ii. Linear Bus ------------------------------> Topology iii. BNC ------------------------------------> Media Connector iv. Device Driver ---------------------------> Software Component
Comments
Post a Comment
If you have any doubt, let me know...