Tutorial II-IST

You might also like

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

UNIVERSITY OF TECHNOLOGY (YATANARPON CYBER CITY)

Faculty of Information and Communication Technology

Department of Information Science

(2023-2024) Academic Year

ISCE-11021, Programming Language( C )

First Year(IST) Tutorial II

1. Write a C program to find the largest number among the four numbers using nested if statement.
(10 marks)
2. Write a C program to check the two numbers given by the user are equal or not equal using if-
else statement. ( 5 marks)
3. Write a C program to check the year given by the user is a leap year or not using if-else statement.
(5 marks)
4. Write a C program to print the following output using nested----- loop. (5 marks)

* *

* * *

* * * *

* * * * *

You might also like