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

Give differences between - new and malloc() , delete and free() ?

1049


List some basic data types in c?

976


why return type of main is not necessary in linux

2046


What is the purpose of 'register' keyword in c language?

980


How can I get back to the interactive keyboard if stdin is redirected?

1137


I came across some code that puts a (void) cast before each call to printf. Why?

1157


Explain c preprocessor?

1049


Explain how do you list a file’s date and time?

991


What is the code in while loop that returns the output of given code?

1900


Can you please explain the difference between strcpy() and memcpy() function?

1019


How does struct work in c?

1033


Write a program to print "hello world" without using a semicolon?

1007


What is the difference between malloc() and calloc() function in c language?

1032


What is output redirection?

1171


Where register variables are stored in c?

913