Answer:
The correct answer for the given question is 1
Explanation:
Following are the program in c language
#include<stdio.h>
// header file
#include<conio.h> //header file
void main() // main method
{
int age,retiredAge; // variable
clrscr(); // clear screen
printf("Enter Age : ");
scanf("%d",&age); // input age
printf("************************");
retiredAge = (65-age); // calculating retired age
printf("\nYour Age is %d",age);
if(retiredAge<0) // checking condition
{
printf("\nYou are already cross the retired age. Or Enter Invalid Age.");
}
else
{
printf("\nNo of Years Left to retired is %d",retiredAge); // dsiplay age
}
getch();
}
Output:
Enter Age : 50
************************
Your Age is 50
No of Years Left to retired is 15
Here Age is the only required input to calculate the retirement age of employee. if entered age is greater than 65 then a message is printed " You are already cross the retired age. Or Enter Invalid Age. " if entered age is valid then retiredAge is calculated with the formula retiredAge = (65-age). and finally display the age,followed by the number of years left to retirement.
Therefore 1 input are required for the above program.