Write a C function to calculate age by accepting current year and birth year

preview_player
Показать описание
1. What is a global variable in C? Why do we need such a variable?

2. Write the syntax of a function declaration. The name of the function is calculateAge(). The function accepts the current year and birth year of a person. The function returns the age of the person.

3. Write the code segment for the function definition of the above function calculateAge()
Рекомендации по теме
Комментарии
Автор

Sir I have changed my request. Here is it :-

Please write a C program to display the following pattern . After displaying make the pattern dynamic by accepting the number of lines as input
*
* * *
* * * * *
* * * * * * *
* * * * *
* * *
*

juthikadas