answersLogoWhite

0

the age of 2 friends

determine if the age greater than 18 if not write the output statment you can vote

if younger than 18 print you should be in school

User Avatar

Wiki User

15y ago

What else can I help you with?

Continue Learning about Engineering

Write a program which takes the gender and salary the age from user the program should calculate and display the following information you If gender is male and age is greater equals 18 then the tax?

Write a program which takes the gender and salary ,the age from user. the program should calculate and display the following information. i. If gender is male and age is greater >=18,then the tax =5%of the salary. ii. If gender is female and age is >=18,then tax=3%of salary. The program should display the output as follows: Gender = Age = Tax = Salary before tax = Salary after tax =


How do we write a program to print your name age address using read data statement in QBASIC?

In QBASIC, you can use the INPUT statement to read data for your name, age, and address. Here's a simple program example: DIM name AS STRING DIM age AS INTEGER DIM address AS STRING INPUT "Enter your name: ", name INPUT "Enter your age: ", age INPUT "Enter your address: ", address PRINT "Name: "; name PRINT "Age: "; age PRINT "Address: "; address This program prompts the user to enter their name, age, and address, then prints the collected information.


Write a program that ask for a user name and age and must print out the information?

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


C program to accept name age and print eligible for vote or not?

#include<stdio.h> #include<conio.h> main() { int age; printf(" enter the age "); scanf("%d",&age); if(age>18) { printf(" citizen can give vote "); } else { printf(" citizen cannot give vote"); } return 0; }


What are entitlement programs?

An entitlement program is a system set up by a government that pays or gives certain types of benefits to people who meet certain qualifications set up in the program. Examples are Social Security, Medicare, Medicaid, Section 8 Housing, Methadone Maintenance, etc. As long a person meets the qualifications set by the program, such as low to moderate household income levels or minimum age requirements, that person is entitled by law to the benefits provided by that program.