Assignment-1
Aim: To print “Hello World” using C language.
Flowchart:
START
OUTPUT
HELLO WORLD
END
Program:
RESULT:
Aim: To check whether a number is even or odd.
Flowchart:
START
INPUT
NUMBER "a"
IF a%2==0
OUTPUT THE
THE NUMBER
NUMBER IS
IS ODD
EVEN
END END
Program:
Result:
Aim: To check whether a number is even or odd.
Flowchart:
START
INPUT
NUMBER "a"
IF "a" = 0
OUTPUT - THE
NUMBER IS IF "a" >0
ZERO
OUTPUT - THE OUTPUT - THE
END NUMBER IS
POSITIVE
NUMBER IS
NEGATIVE
END END
Program:
Result:
Aim: To calculate the area of square and rectangle.
Flowchart:
START
INPUT
NUMBER
"a,b"
X = a*a , Y=a*b
OUTPUT
X,Y
END
Program:
Result:
Aim: To compare two numbers.
Flowchart:
START
INPUT
"x" , "y"
IF x>y
OUTPUT - OUTPUT -
X IS Y IS
GREATER GREATER
END END
Program:
Result: