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


Please Help Members By Posting Answers For Below Questions

Describe the order of precedence with regards to operators in C.

638


Describe how arrays can be passed to a user defined function

788


1234554321 1234 4321 123 321 12 21 1 1 12 21 123 321 1234 4321 1234554321

3152


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

612


Is c is a procedural language?

604






What do you mean by keywords in c?

632


Differentiate between functions getch() and getche().

627


What is a MAC Address?

633


Where define directive used?

611


Why header files are used?

650


What is the difference between if else and switchstatement

1320


What is the mean of function?

653


What are static variables in c?

633


What is calloc()?

633


Is c language still used?

540