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
How can you increase the allowable number of simultaneously open files?
How is a pointer variable declared?
What is the size of structure in c?
How do you write a program which produces its own source code as output?
Create a structure to specify data on students as given below: Roll number, Name, Department, Course, and Year of joining. Assume that there are not more than 450 students in the collage. (a) Write a function to print the names of all students who joined in the last 3 years. (b) Write a function to print the data of a student whose roll numbers are divisible by 4.
Which header file is essential for using strcmp function?
What are the differences between Structures and Arrays?
What is a stream?
What is the difference between functions abs() and fabs()?
Do string constants represent numerical values?
How to write c functions that modify head pointer of a linked list?
Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?
How can I avoid the abort, retry, fail messages?
main() { printf("hello"); fork(); }
What are loops in c?