answersLogoWhite

0


Best Answer

#include
#include
void main()
{
int age;
clrscr();
printf("Enter the Age:");
scanf("%d",&age);
printf("Your age is %d",age);
getch();
}

User Avatar

Wiki User

14y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

10y ago

how to find the name and gender of people.at the end ,print the number of male and female entries made

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write a program that ask for a user name and age and must print out the information?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Write in BlueJ to print lucky numbers?

To print lucky numbers in java, you must give the following program: class example { static public void main(String[] args) { System.out.println("Lucky number is your favourite number which is your DOB"); } }


Why does your Microsoft Backup fail with an IO device error?

It is looking for a storage medium to write the backup information to, so there must be a CD/DVD drive with a writable disc in it before the program is started.


Write program that read an integer and display all its smallest factors?

All the smallest factors of a number must be its smallest factor, which for any number is 1, so: loop loop loop print "Enter an integer number: ": input n until num(n) do print "Please enter a number" repeat until n = int(n) do print "Please enter an integer" repeat print "Smallest factor of ":n:" is 1" repeat


How can you get a new computer with Windows Vista to print from an older DOS program?

you must go to the Microsoft website and download Windows Easy Transfer


Why the radio advertising is more effective than print advertising?

Because it is forced on the listener. If you're listening to a radio program, you MUST sit through the ads to continue, or else switch the station, which is no guarantee you'll find a station not currently on a commercial break. With print you can chose not to look at the page, you can just, flip, and there is no retention of information.


How do you write a c program?

this is what the program says :i want to write a C program which reads in one value, the seed for the random number generator. Your program should then generate 100,000 simulated rolls of a pair of dice. The program should calculate and print the number of times the simulated roll of the dice was a 2, the number of times it was a 7 and the number of times it was a 12. Finally, print out the average (three decimal places) of all of the simulated rolls.Your program must have at least one user defined function called die which creates the roll of one die. This function should return an integer value between 1 and 6 inclusive. It should have no arguments.1- i cant figure out how to calculate how many time does the 2 , 7 , 12 print out .2- how to calculate the number in the 100,000 to be able to calculate the avg.3- i dunno how to create the function in the second part .


Do I need my signature in the child's passport if I am traveling with the child?

If the child is not able to write his or her name the mother or father must print and sign it for them. Next to where it is signed the parent's initials must be in parenthesis.


Write a program in C without any functions?

It is not possible. In C, any program must have at least one function to be able to compile and execute properly: the function main()


Write a program to convert stack into queue using c language?

In order to write a program to convert stack into queue using c language you must be able to identify the proper program. Having a special certification in programing will be beneficial as well to make sure you recognize the proper queues for the programs.


Why book keeping is irrelevant to accounting?

Book keeping is not irrelevant to accounting. Accountants must start somewhere. They start with the books. If you wish to eat vegetables from your garden, you must plant seeds. You must add fertilizer. You must add water. You must add labor. You must pay for land. You must start somewhere. Finally you pick, process, cook, and serve your veggies. Each step has a cost. It is recorded. (My boss had me write a cost accounting program. He also had me write a program that carried that company's books from book keepers entry to journal.)


What must employers need to include information in a written and complete hazard communication program?

Employers must include information on chemical hazards in the workplace, details on how hazardous chemicals are labeled and identified, safety data sheets for each hazardous chemical, and training programs for employees on how to safely handle chemicals in their hazard communication program.


Can you do bba with cfa?

Yes you can enrol for cfa during your bba program but you must be graduate enough before you can write your cfa level 2 exam