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.
People need a language to communicate with each other. These language may be either French, Ameicans, Spanish etc known as natural language. In the same manner, to communicate with machine, we need a different language known as machine language. Machine needs instruction to perform any types of task to be carried out. These instructions collectively known as program. The instruction given should be in machine language so that machine can understand. The instruction should be in a manner i.e should follow the rule of program writing. Instructions collectively known as program. Language to interact with computer is known as programming language that a instructor should learn before giving any instruction to machine/computer. There are two types of Programming Language Low Level Language High Level Language
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
Comments
Post a Comment
If you have any doubt, let me know...