Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Borg El Arab Technological University

Spring 2023

C Programming Language

Tutorial (2)

1) Calculate the addition result number Z of these


following integers x= 10, y= 20.

2) Calculate the multiplication result number C of these


following integers a= 5, b= 9.

3) Calculate the Division result Z of these following


variables x= 50, y= 4, consider x,y integer numbers
and if considering them float numbers .

4) Using C language code, write a code requesting


from user his age and gpa and print them out on the
screen.

5) Using the postfix and prefix methods, write a code


with these variables y=10, z=15 & w=20, first increase
y with postfix, second decrease z with postfix and
increase & decrease w with prefix commands.

You might also like