C Programming 2019 Makeup

2nd Semester

Year 2019 Makeup

  1. Write a function that accepts two integers as arguments and returns average of even numbers between them.

  1. Write a program to read a file named ‘some.txt’ which contains 20 words and display only ten words in the monitor.

  1. Write a program to take 11 records of car (model, price, color, cc) from user and display the records of red cars only.

  1. Write a function which accepts two integers as arguments and returns sum, difference, and product of the numbers.

 

  1. Write a program that takes integers in an array of size 3 by 3, and display sum of all the elements in the array.

  1. Write a program to display the following pattern:

a
b b
c c c
e e e e

 

Leave a Reply

Your email address will not be published.