Write a program to enter the name and age.
If age>28 then find salary categories.
if age<28 then find that you are gaduate or not.
Answer Posted / rohith
#include<stdio.h>
#include<conio.h>
void main()
{
int emp num,emp salary,age;
printf("enter the age");
scanf("%d",&age);
if(age>28)
{
printf("ener the emp num");
scanf("%d",emp name);
printf("enter the salary of the emp");
printf("%d", salary);
else
printf("he was not emp");
}
getch();
}
Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
Describe the order of precedence with regards to operators in C.
Describe how arrays can be passed to a user defined function
1234554321 1234 4321 123 321 12 21 1 1 12 21 123 321 1234 4321 1234554321
the statement while(i) puts the entire logic in loop. this loop is called a) indefinite loop b) definite loop c) loop syntax wrong d) none of the above
Is c is a procedural language?
What do you mean by keywords in c?
Differentiate between functions getch() and getche().
What is a MAC Address?
Where define directive used?
Why header files are used?
What is the difference between if else and switchstatement
What is the mean of function?
What are static variables in c?
What is calloc()?
Is c language still used?