0% found this document useful (0 votes)
45 views

Basic C Program

C is a middle-level programming language that has properties of both high-level and low-level languages. It follows a top-down approach and does not support code reusability. The document provides examples of programs in C including a calculator program, programs to calculate area and perimeter of shapes, conversion programs between distance and temperature units, and programs to interchange numbers and calculate student aggregates and percentages.

Uploaded by

Pallab Datta
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
45 views

Basic C Program

C is a middle-level programming language that has properties of both high-level and low-level languages. It follows a top-down approach and does not support code reusability. The document provides examples of programs in C including a calculator program, programs to calculate area and perimeter of shapes, conversion programs between distance and temperature units, and programs to interchange numbers and calculate student aggregates and percentages.

Uploaded by

Pallab Datta
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

C Programming Language

 What is Programming Language?


 Programming language are defined as a language which are used to implement some logics
into its process forms.
 There are two types of Programming language: i) High Level Language(HLL), ii) Low Level
Language(LLL)
 HLL are easy to develop but execution time is more.
 LLL are hard to develop but execution time is less.
 HLL may consists of English alphabets ,numeric symbols and special characters.
 LLL may consists of machine level codes and binary information.

Introduction to C
 The C Language has the property of high level languages and low level languages. That is
why C language is often called as a middle level language.
 It is follows the top-down approach.
 It is does not support the code re-usability concept.

 Compiler: A compiler is a special program that process the statements


written in a particular programming language and converts them into
machine language at one go. The compiler follow the I-P-O cycle.
 Variable: Variables are the symbols of which can store some values or
expressions for calculating. So we can say that it act as a container to the
constants or expressions.
 Constant: It is defined as the numeric symbol or a collection of character
which can be stored as a content to the variables. The value of a constants
are fixed.

Programs:

1. Wap to create a calculator program with runtime value.


2. Wap to find Area and Perimeter of Rectangle ,Circle, Square.
3. Wap to convert and print the distance of city in meters, feet, inches and
centimetres. Input the distance (in KM) at runtime.
4. Wap to convert the temperature from Fahrenheit to Centigrade.
Formula: (F-32)/9*5
5. Wap to interchange the two number using third variable. And not using
third variable.
6. Wap to find the aggregate and Percentage of a student’s marksheet.

You might also like