0% found this document useful (0 votes)
39 views7 pages

Assignment 1 PIC

Uploaded by

YATHAARTH THAPAR
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)
39 views7 pages

Assignment 1 PIC

Uploaded by

YATHAARTH THAPAR
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

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:

You might also like