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
Give differences between - new and malloc() , delete and free() ?
List some basic data types in c?
why return type of main is not necessary in linux
What is the purpose of 'register' keyword in c language?
How can I get back to the interactive keyboard if stdin is redirected?
I came across some code that puts a (void) cast before each call to printf. Why?
Explain c preprocessor?
Explain how do you list a file’s date and time?
What is the code in while loop that returns the output of given code?
Can you please explain the difference between strcpy() and memcpy() function?
How does struct work in c?
Write a program to print "hello world" without using a semicolon?
What is the difference between malloc() and calloc() function in c language?
What is output redirection?
Where register variables are stored in c?