Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

How can you increase the allowable number of simultaneously open files?

1211


How is a pointer variable declared?

1158


What is the size of structure in c?

1215


How do you write a program which produces its own source code as output?

1175


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.

1157


Which header file is essential for using strcmp function?

1534


What are the differences between Structures and Arrays?

1273


What is a stream?

1192


What is the difference between functions abs() and fabs()?

1207


Do string constants represent numerical values?

1449


How to write c functions that modify head pointer of a linked list?

1033


Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?

1057


How can I avoid the abort, retry, fail messages?

1184


main() { printf("hello"); fork(); }

1249


What are loops in c?

1067