0% found this document useful (0 votes)
158 views17 pages

Module 1

It's the basics of C programming

Uploaded by

kotwalummehabiba
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
158 views17 pages

Module 1

It's the basics of C programming

Uploaded by

kotwalummehabiba
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 17

Maratha Mandal Engineering College, BELAGAVI.

PROGRAMMING IN C 1BEIT105/205

MODULE-1

HISTORY OF C
C is a general purpose, procedural, structured computer programming language developed by
Dennis Ritchie in the year 1972 at AT&T Bell Labs.
C language was developed on UNIX and was invented to write UNIX system software.
C is a successor of B language.
There are different C standards: K&R C std, ANSI C, ISO C.

Characteristics of C:
• C is easy to learn.
• C is a general purpose language.
• C is a structured and procedural language.
• It is portable.
• It can extend itself

Examples of C:
• Operating system
• Language compilers
• Assemblers
• Text editors
• Databases

C Character Set:
A C character set defines the valid characters that can be used in a source program. The basic
C character set are:
1. Letters: Uppercase: A, B, C, ……, Z Lowercase: a, b, c ……, z
2. Digits: 0, 1, 2,….., 9
3. Special characters:! , . # $ ( ,), }, { etc.
4. White spaces: Blank space, Horizontal tab space, carriage return, new line character, form
feed character.

Department of Computer Science & Engineering 1


Maratha Mandal Engineering College, BELAGAVI.
PROGRAMMING IN C 1BEIT105/205

Basic structure of C Program

Every c program is made up of one or more pre-processor commands, global declarations, and
one or more functions.

Documentation section :consists of a set of comment line giving the name of the program, the
author, and other details. Compiler ignores these comments when it translates the program into
executable code. C uses 2 different formats
1. Block comments /*this is multi line comments*/
2. Line comments //this is single line comments

The Link section: provides instruction to the compiler to link functions from system library.
This Section is also called as pre-processor Statements.

The definition section: defines all symbolic constants

Department of Computer Science & Engineering 2


Maratha Mandal Engineering College, BELAGAVI.
PROGRAMMING IN C 1BEIT105/205

Global Declaration section: there are some variables that are used in more than on function,
such a variable are called global variable and are declared in the global declaration section that
is outside of all functions. This section also defines user defined functions.
Every C program must have one main () function section. This section contains two parts
declaration part and executable part
Declaration part declares all the variables used in the executable part
There is at least one statement in an executable part. These two part must appear at the
beginning of the brace and ends at the closing brace. All statement in the declaration and
executable part ends with semicolon (;).
The sub program section: contains all the user defined functions that are called in the main
function although they appear in any order.
Here is a small program that displays a sentence “Welcome to C Programming for Problem
solving” on the monitor screen:
/* C program to display a welcome message */
#include<stdio.h>
void main( )

{
printf(“Welcome to C Programming for Problem solving”);
}

This program doesn’t have all the parts of typical C program.


The first line begins with /* and ending with */ is the comment line which is used to enhance
program readability and understanding.
The second line it has pre-processor directive #include which includes a header file stdio.h, the
standard input /output header file. The definitions of printf and scanf functions are defined in
this header file. Hence this line is always necessary.
The third line is main(), this is the special function used by C system to tell where the program
starts. Every program have exactly one main function. The empty pair of parenthesis following
main indicates that main has no arguments. Void indicates that main function does not return
any value to operating system. By default main returns integer value to operating system.
The opening brace “}” in the 4th line marks the beginning of the function main and closing
brace “}” at the last line indicates the end of the function.
All the statements between these braces form the function body. The function body contains
set of instruction to perform the given task.
In this program the function body contains only one executable statement printf. The printf is
a predefined function for printing output. It prints everything within the double quote. In this it
will print Welcome to C Programming for Problem solving on the monitor

Department of Computer Science & Engineering 3


Maratha Mandal Engineering College, BELAGAVI.
PROGRAMMING IN C 1BEIT105/205

C Tokens: In C program the smallest logically meaning full individual units are known as c
tokens. These are also called as the basic building blocks of C program which cannot be further
broken into subparts. C has 6 Different types of tokens. C programs are written using these
tokens and syntax of the language.

i. Keywords
ii. Identifiers
iii. Constants
iv. Strings
v. Operators
vi. Special symbols

1. Keywords: These are predefined words in C compiler which are ment for specific purpose.
These words are also called as reserved words. These words cannot be used as variable names.
These words are usually case sensitive and are usually written in lower case letters only. There
are 32 keywords in C.

auto break case char const continue default do

double else enum extern float for goto if

int long register return short signed sizeof static

struct switch typedef union unsigned void volatile while

2. Identifiers: These are the names given to various elements of the C program like variables,
functions, arrays, etc. These are user defined names and consist of sequence letters, digits or
underscore.
Rules to define an Identifiers
1. The first character of the identifier must always be a letter or an underscore followed by any
number of letters digits or underscore.
2. Keywords cannot be used as identifiers or variables.
3. An Identifier or a variable should not contain two consecutive underscores
4. Whitespaces and special symbols cannot be used to name the identifiers.
5. Identifiers are case sensitive (A same variable name declared in uppercase letters and lower
case letters are two different variables in C program).
Examples
food_court valid identifier
$num Invalid identifier ($ is a special symbol)

Department of Computer Science & Engineering 4


Maratha Mandal Engineering College, BELAGAVI.
PROGRAMMING IN C 1BEIT105/205

_mite2021 valid identifier


mite mangalore Invalid identifier (white spaces are not allowed)
continue Invalid identifier (continue is a keyword)

3. Constants: These are the fixed values assigned to the variables which cannot be cannot be
changed or modified in the program. Constants are broadly classified as

Numeric Constants:
Integer Constant: These contain digits or whole numbers without decimal point which can be
either positive or negative.
(i) Decimal: It is an integer constant consisting of numbers from 0-9. It can be preceded by + or –
(ii) Octal: It is an integer constant consisting of numbers from 0-7. It is preceded by o
(iii) Hexadecimal: It is an integer constant consisting of numbers from 0-9, A-F (A=10, B=11,
C=12, D=13, E=14, F=15). It is preceded by 0x

Real Constant: These contain an decimal point or an exponent or both. It can be either positive
or negative or both.
Example: 21.5, 3.142, 6.6260X10-34 , 2.15X102 → 2.15e2

Character Constants:
Single Character Constant: can be single character enclosed within single quotes or a ‘\’
(backslash) followed by any character. ‘\’ is called escape character as it alters the meaning of
character following it. Following are the complete list of escape sequence.

Department of Computer Science & Engineering 5


Maratha Mandal Engineering College, BELAGAVI.
PROGRAMMING IN C 1BEIT105/205

‘\a’ alert (bell)character ‘\ \’ backslash character


‘\b’ backspace ‘\?’ Question mark
‘\f’ formfeed ‘\’ ’ Single quote
‘\n’ newline character ‘\”’ double quotes
‘\r’ carriage return ‘\ooo’ octal number
‘\t’ horizontal tab ‘\xxh’ hexadecimal number
‘\v’ vertical tab ‘\0’ Null character

String Constant: String constants also termed as string literal are sequences of characters
enclosed in double quotes. The character may be letters, numbers, special characters and blank
space. a String literal always ends with a Null character (‘\0’)
Example:
M I T E ‘\0’

5. Operators: An operator is a symbol that tells the compiler to perform specific mathematical
and logical functions. The different operators supported in ‘C’ are:
(i) Arithmetic Operators
(ii) Relational Operators
(iii) Logical Operators
(iv) Assignment Operators
(v) Bitwise Operators
(vi) Unary Operators→ Increment and Decrement
(vii) Ternary/ Conditional Operator
(viii) Special Operators

(i) Arithmetic Operators: These operators are used to perform basic arithmetic operations
Operator Name Result Syntax Example (b=5, c=2)
+ Addition Sum a=b+c a=7
- Subtraction Difference a=b-c a=3
* Multiplication Product a=b*c a = 10
/ Division Quotient a=b/c a=2
% Modulus Remainder a=b%c a=1

(ii) Relational Operators: This operator compares two operands inorder to find out the
relation between them. The output will be either 0 (False) or 1 (True).

Department of Computer Science & Engineering 6


Maratha Mandal Engineering College, BELAGAVI.
PROGRAMMING IN C 1BEIT105/205

Operator Name Syntax Example (b=5, c=2)


< Lesser than a=b<c a = 0 (False)
> Greater than a=b>c a = 1 (True)
<= Lesser than or Equal to a = b <= c a = 0 (False)
>= Greater than or Equal to a = b >= c a = 1 (True)
== Equal to a=b==c a = 0 (False)
!= Not equal to a = b!= c a = 1 (True)

(iii) Logical Operators: These are used to test more than one condition and make decision.
The different logical operators are:
❖ Logical NOT
❖ Logical AND
❖ Logical OR

❖ Logical NOT (!) The output is true when input is false and vice versa. It accepts only
one input.
Input Output
X !X
0 1
1 0

❖ Logical AND (&&) The output is true only if both inputs are true. It accepts two or
more inputs.
Input Output
X Y X && Y
0 0 0
0 1 0
1 0 0
1 1 1

❖ Logical OR (||) The output is true only if any of its input is true. It accepts two or
more inputs.
Input Output
X Y X || Y
0 0 0
0 1 1
1 0 1
1 1 1

Department of Computer Science & Engineering 7


Maratha Mandal Engineering College, BELAGAVI.
PROGRAMMING IN C 1BEIT105/205

(iv) Assignment Operators: The assignment operator is used to assign the values to the
variables on the left hand side. The symbol “=” is used as an assignment operator.
Example: x = 10, c = a+b
Shorthand Assignment: An expression can be written in a compact manner i.e. if the operand
on the left hand side of the assignment operator is same as the first operand of the right hand
side expression it can be written using the shorthand assignment operator
Example: x = x+2 → x+=2
Multiple Assignment: If more than one variable holds the same value we can use multiple
assignment to avoid rewriting of the same values repeatedly.
Example: a=10,b=10,c=10 → a=b=c=10

(v) Bitwise Operators:


These works on bits and performs bit by bit operations. The different types of bitwise operators
are:
Bitwise NOT (~) Bitwise AND (&)
Bitwise OR (|)
Bitwise XOR (^) → Output is True when odd number of 1’s are present.
Bitwise left shift (<<) Bitwise right shift (>>)
Bitwise NOT (~)
X ~X
0 1
1 0

Bitwise AND (&), Bitwise OR (|),Bitwise XOR (^)


X Y X&Y X|Y X^Y
0 0 0 0 0
0 1 0 1 1
1 0 0 1 1
1 1 1 1 0

Bitwise Left Shift (<<): Shift specified number of bits to left side
X 0 1 0 0 0 1 1 0
X<<2 0 0 0 1 1 0 0 0

Bitwise Right Shift (>>): Shift specified number of bits to right side.
X 0 1 0 0 0 1 1 0
X>>2 0 0 0 1 0 0 0 1

Department of Computer Science & Engineering 8


Maratha Mandal Engineering College, BELAGAVI.
PROGRAMMING IN C 1BEIT105/205

(vi) Unary Operators:


Unary Plus Operator Unary Minus Operator
Increment (++) Decrement (--)
Unary Plus and Unary Minus Operator : These operators are used to determine the sign of
the operand the only unary operators are + and –
Increment (++): An increment operator adds one to the operand. The types of increment are
Pre increment and Post increment
Pre increment: The increment operator followed by an operand is called Pre increment
operator here the value on the right hand side is first incremented by one and then the value is
assigned to the variable at the left.
Example: If a=8, b= ++a what will be the value of a and b?
Since ++a is a pre increment operator first the value of a is incremented by 1
hence the new value of a=9 now this new value is assigned to the variable b
i.e. b=9 Therefore a=9 and b=9
Post increment: An Operand followed by an increment operator is called post increment
operator here the value is first assigned to the variable at the left and then the value of the
variable in the right will be incremented by 1

Example: If q=6, p= q++ what will be the value of p and q?


Since q++ is a post increment operator first the value of q is assigned to the
variable p i.e. p=6 now the value of q is incremented by 1 hence the new value
of q=7, this new value of q will be used for the upcoming iteration Therefore
p=6 and q=7
Decrement (--): A decrement operator subtracts 1 from the operand. The types of increment are
Pre decrement and Post decrement
Pre decrement: The decrement operator followed by an operand is called Pre decrement
operator here the value on the right hand side is first decremented by one and then the value is
assigned to the variable at the left.
Example: If y=4, x= --y what will be the value of x and y?

Since --y is a pre decrement operator first the value of y is decremented by 1


hence the new value of y=3 now this new value is assigned to the variable x
i.e. x=3 Therefore x=3 and y=3
Post decrement: An Operand followed by an decrement operator is called post decrement
operator here the value is first assigned to the variable at the left and then the value of the
variable in the right will be decremented by 1

Department of Computer Science & Engineering 9


Maratha Mandal Engineering College, BELAGAVI.
PROGRAMMING IN C 1BEIT105/205

Example: If n=5, m= n-- what will be the value of m and n?


Since n-- is a post decrement operator first the value of n is assigned to the
variable m i.e. m=5 now the value of n is decremented by 1 hence the new
value of n=4, this new value of n will be used for the upcoming iteration
Therefore m=5 and n=4

(vii) Ternary/ Conditional Operator: It takes three arguments


Expression1 ? Expression2 : Expression3
Where,
Expression1→ Condition
Expression2→ Statement followed if condition is true
Expression3→ Statement followed if condition is false
Example:
large = (4 > 2) ? 4: 2 →large = 4

(viii) Special Operators:


Comma Operator: It can be used as operator in expression and as separator in declaring
variables.

sizeof() operator: It is used to determine the size of variable or value in bytes.

Address Operator: It is used to find the address of the operators


Data Types: These are the keywords that are used to assign the type of a variable based on the
type of data stored in it. Data types are used to
❖ Identify the type of variable when it is used
❖ Identify the type of return value of the function
❖ Identify the type of parameter expected by the function
The data types are broadly classified into 3 types
I. Primary or built-in or primitive data type
II. Derived data type
III. User defined data type

I. Primary or built-in or primitive data type: These are the data types which are already
predefined by the compiler.
(i) Integer data type: It is used to store whole numbers and its range depends on the word
length defined for a computer. It usually occupies 2 bytes of memory, for signed integers the
value ranges from -2n-1 to +2n-1-1 and for unsigned integers the value ranges from 0 to 2n-1.
Keyword int is used to declare variables of integer data type.

Department of Computer Science & Engineering 10


Maratha Mandal Engineering College, BELAGAVI.
PROGRAMMING IN C 1BEIT105/205

(ii) Floating point data type: It is used to store decimal numbers that have single precision
floating point value. It provides 6 digits after the decimal point and occupies 4 bytes of memory.
Keyword float is used to declare variables of floating point data type.

(iii) Double data type: These are used to store real numbers that have double precision floating
point value. It provides 16 digits after the decimal point. this data type is used when performing
complex calculations to get accurate results. It occupies 8 bytes of memory. Keyword double
is used to store the variables of double data type.

(iv) Char data type: This data type basically stores character type of data. the character data
can be an Alphabet [a to z or A to Z] , digits [0 to 9] and all special characters or
symbols[@,$,&,#,...]which is enclosed with in single quotes. It occupies one byte of memory.
Keyword char is used to declare variables of character data type.

(v) Void data type: It does not store any value hence we cannot store any operation on the
variable declared as void. It has no range. Keyword void is used to specify non return data type.

Type Data type Size (Bytes) Range


Signed: -128 to +127
Character char 1
Unsigned: 0 to 255
Signed -32768 to +32767
Integer int 2
Unsigned 0 to 65535
Floating point or real float 4 3.4e-38 to 3.4e+38
Double precision
double 8 1.7e-308 to 1.7e+308
floating point
Non specific void 0 -

II. Derived data type: These are the data types which are derived from the primitive data
types. There are mainly three derived data types
(i) Arrays: Sequence of data items having homogeneous values.

(ii) References: Function pointers allow referencing with a particular signature.

(iii) Pointers: These are used to access the memory and deal with their addresses

III. User defined data type: The type definition feature of C allows the user to define an
identifier which acts as data type using an existing basic data type. Such identifier is called as
user defined data types.
(i) Structure: It is a package of variable of different types under a single name. struct keyword
is used to define a structure.

(ii) UNION: This allows storing various data types in the same memory locations.

Department of Computer Science & Engineering 11


Maratha Mandal Engineering College, BELAGAVI.
PROGRAMMING IN C 1BEIT105/205

(iii) ENUM: Enumeration is a special data type that consists of integral constants and each of
them is assigned with a specific name. enum keyword is used to create the enumerated data
type.

Data type Qualifiers and Data type Modifiers


Data type Qualifiers: American National Standard Institute (ANSI) introduced two types of
data type qualifiers
const: The value of the variable is constant during execution of the program. Such variables
are declared using keyword "const".
Example: const float pi = 3.142
volatile: The value of a variable might change at any time by an outside factor such variables
are declared using keyword "volatile".
Example: volatile float a; volatile int b = 10;

Data type Modifiers: Built in data types except void data type can easily be modified by using
data type modifier. There are mainly 4 data type modifiers:
(i) Signed (ii) Unsigned (iii) Long (iv) Short

(i) Signed: it indicates that the variable is capable of storing the negative numbers. The values
will be in this range. -2n-1 to +2n-1-1. Where, n is the size of the particular data type in bits. In
declaration we have to use signed keyword. Example: signed int a;

(ii) Unsigned: it indicates that the variable is capable of storing only positive numbers The
values will be in this range. 0 to 2n-1. Where, n is the size of the particular data type in bits. In
declaration we have to use unsigned keyword. Example: unsigned int a;

(iii) Long: It is used to increase the storage capacity of the variable. long keyword can be used
as shown long int a; //long int occupies 4 bytes of memory.
(iv) Short: It is used to decrease the storage capacity of the variable (capacity is reduced to
half). short keyword can be used as shown short int a; //short int occupies 1 bytes of memory.

Format Specifiers: These are used to tell the compiler about the type of data being used
Data Type Format Specifier Meaning
%d Decimal integer
%o Octal integer
%x Hexadecimal integer
Integer (int)
%i Decimal, hex or octal int
%u Unsigned integer
%h Short integer
Floating Point %e
floating point
(float) %f

Department of Computer Science & Engineering 12


Maratha Mandal Engineering College, BELAGAVI.
PROGRAMMING IN C 1BEIT105/205

%g
%c Single character
Character (char)
%s String data
Double (double) %lf Floating point number or double
Long Integer %ld long integer value

Type Conversion: It is a process of converting an expression from one data type to another
data type
There are two types:
Implicit Type conversion
Explicit Type Conversion

Implicit Type Conversion: This type of conversion is done by the compiler, so it is called as
implicit type conversion. Without user intervention this process is carried out. Whenever we
are converting narrow operand (lower data type variable) into wide operand (higher data type
variable) then compiler will do it implicitly.
Example:
#include<stdio.h>
void main( )
{
char b= ‘A’;
int a;
a=b;
printf(“%d”,a);
}

OUTPUT: 65

Explicit Type Conversion: This type of conversion is done by the user so it is called explicit
type conversion. Whenever we are converting wider operand (higher data type variable) into a
narrower operand (lower data type variable) then its called explicit conversion.
Example:
#include<stdio.h>
void main()
{
int a=4;
float b;
b=1/(float)a;
printf(“%f”,b);
}

OUTPUT: 0.250000

Department of Computer Science & Engineering 13


Maratha Mandal Engineering College, BELAGAVI.
PROGRAMMING IN C 1BEIT105/205

Expressions: It is combination of operands (variables, constants) and operators.


Precedence: The order in which operators are evaluated is based on the priority value.
Associativity: It is the parsing direction used to evaluate an expression. It can be left to right
or right to left.
Evaluation of expressions: Expressions are evaluated using an assignment statement.
Example: variable = expression
sum = a + b

Following table provides the Precedence and Associativity of operators:


Operator Description Associativity Precedence(Rank)
() Function call
Left to right 1
[] Array element reference
+ Unary plus
- Unary minus
++ Increment
-- Decrement
! Logical negation
Right to left 2
~ Ones complement
* Pointer to reference
& Address
Sizeof Size of an object
(type) Type cast (conversion)
* Multiplication
/ Division Left to right 3
% Modulus
+ Addition
Left to right 4
- Subtraction
<< Left shift
Left to right 5
>> Right Shift
< Less than
<= Less than or equal to
Left to right 6
> Greater than
>= Greater than or equal to
== Equality
Left to right 7
|= Inequality
& Bitwise AND Left to right 8
^ Bitwise XOR Left to right 9
| Bitwise OR Left to right 10
&& Logical AND Left to right 11
|| Logical OR Left to right 12
?: Conditional expression Right to left 13

Department of Computer Science & Engineering 14


Maratha Mandal Engineering College, BELAGAVI.
PROGRAMMING IN C 1BEIT105/205

=
*= /= %=
+= -= &= Assignment operators Right to left 14
^= |=
<<= >>=
, Comma operator Left to right 15

Examples:
1. If a=8, b=15 and c=4 calculate the expression

2 * ((a%5 )* (4 +(b –3 )/ (c+ 2 )) )


= 2 * ( ( 8 % 5 ) * ( 4 + ( 15 – 3 ) / ( 4 + 2 ) ) ) //Substitution of values

= 2 * (3 * ( 4 + ( 15 – 3 ) / ( 4 + 2 ) ) ) //Brackets having the highest priority

= 2 * ( 3 * ( 4 +12 /( 4 + 2 ) ) ) //inner most brackets are evaluated first

= 2 * ( 3 * ( 4 +12 / 6 ) ) //Brackets having the highest priority

= 2 * ( 3 * ( 4 + 2 ) ) //within the brackets ‘/’ has the highest priority

= 2 * ( 3 * 6 ) // inner most brackets are evaluated

= 2 * 18 // Brackets having the highest priority

= 36 //Final Result

2. Evaluate the expression


a += b *= c -=5 , Given a=3, b=5, c=8.

a += b *= c -=5 //Apply Associativity i.e. evaluate from right to left

a += b *= ( c = c – 5 ) //Deduce the short hand Expression


a += b *= ( c = 8 – 5 ) //Substitute the given value of c

a += b *= ( c = 3 ) //Reduce the equation to simplified form

a += b *= 3 //Apply Associativity i.e. evaluate from right to left

a += ( b = b * 3 ) //Deduce the short hand Expression

a += ( b = 5 * 3 ) //Substitute the given value of b

a += ( b = 15 ) //Reduce the equation to simplified form

a + = 15 //Apply Associativity i.e. evaluate from right to left

Department of Computer Science & Engineering 15


Maratha Mandal Engineering College, BELAGAVI.
PROGRAMMING IN C 1BEIT105/205

a = a + 15 // Deduce the short hand Expression

a = 3 + 15 //Substitute the given value of a


a =18 // Final Result

3. Evaluate the expression

100 / 20 <= 10 – 5 + 100 % 10 – 20 == 5 >= 1 != 20

→ 100 / 20 <= 10 – 5 + 100 % 10 – 20 == 5 >= 1 != 20

→ 5 <= 10 – 5 + 100 % 10 – 20 == 5 >= 1 != 20

→ 5 <= 10 – 5 + 0 – 20 == 5 >= 1 != 20

→ 5 <= 5 + 0 – 20 == 5 >= 1 != 20

→ 5 <= 5 – 20 == 5 >= 1 != 20

→ 5 <= -15 == 5 >= 1 != 20 // Simplify the relational operators

→ 0 == 5 >= 1 != 20 //True is given by 1 and false is given by 0

→ 0 == 1 != 20

→ 0 != 20

→1

Writing C expressions for Mathematical Expressions


Basic Conversions
𝑥 → x/y
𝑦

√𝑣 → sqrt(v)
| h | → abs(h)
gt → pow(g,t)
ex → exp(x)

sin x → sin (x)

sin 45o → sin ( ( 45 * 3.142 ) / 180) /*converting degrees to radians*/

Department of Computer Science & Engineering 16


Maratha Mandal Engineering College, BELAGAVI.
PROGRAMMING IN C 1BEIT105/205

Write the C equivalent expressions for the following mathematical Expressions


5𝑥+3𝑦
1. A= → A= ((5*x)+(3*y))/(a+b)
𝑎+𝑏

2. 𝐶 = 𝑒|𝑥+𝑦−10| → C = exp ( abs ( x + y – 10 ) )

𝑒√𝑥+𝑒√𝑦
3. 𝑃 = → P = ( exp ( sqrt ( x ) ) + exp ( sqrt ( y ) ) ) / ( x * sin ( sqrt ( y ) )
𝑥𝑠𝑖𝑛√𝑦

−𝑏+√𝑏2−4𝑎𝑐
4. 𝑋 = → X= ( ( -b ) + sqrt ( b * b – 4 * a * c ) ) / ( 2 * a )
2𝑎

Department of Computer Science & Engineering 17

You might also like