Skip to main content

write a program that inputs name,age and address from the user and display it on the screen.

 DEV C++:
#include<iostream>
using namespace std;
int main()
{
    char name[20];
    char address[20];
    int age;
    cout<<"enter your name:"<<endl;
    cin>>name;
    cout<<"enter your address:"<<endl;
    cin>>address;
    cout<<"enter your age:"<<endl;
    cin>>age;
    cout<<"Name : "<<name<<endl;
    cout<<"Address : "<<address<<endl;
    cout<<"Age : "<<age<<endl;
    return 0;
}

OUTPUT:
enter your name:
NABEEL
enter your address:
PAKISTAN
enter your age:
20
Name : NABEEL
Address : PAKISTAN
Age : 20

Comments

Popular posts from this blog

write a program that prints a text of 4 lines consisting of Character,Integer Values and Floating point Value using cout statement.

DEV C++: #include<iostream> using namespace std; int main() {  cout<<"I am from YOUR COUNTRY:"<<endl;  cout<<"My name is YOUR NAME:"<<endl;  cout<<"My age is YOUR AGE:"<<endl;  cout<<"My height is YOUR HEIGHT:"<<endl;  return 0; } OUTPUT: I am from YOUR COUNTRY: My name is YOUR NAME: My age is YOUR AGE: My height YOUR HEIGHT: Click here Click here Click here Click here Click here Click here Click here Click here Click here Click here Click here Click here Click here Click here Click here Click here Click here Click here Click here Click here Click here Click here Click here Click here Click here Click here Click here Click here Click here Click here Click here Click here Click here Click here Click here Click here Click here Click here Click here Click here Click here Click here Click here Click here Click here Click here Click here Click here ...

How to tie a TIE

The basic idea is that tie knots can be described as a sequence of five different possible moves, although not all moves can follow each other. These are summarized as follows. All diagrams are as the tie would appear were you wearing it and looking in a mirror. L : left; C : centre; R : right; these must change every move. i : into the diagram; o : out of the diagram; these must alternate. T : through the loop just made. With this shorthand, traditional and new knots can be compactly expressed, as below. Note that any knot that begins with an o move must start with the tie turned inside out around the neck.

How many ounces in a pound?

How many ounces in a pound (oz in lb) How many ounces in a pound (oz in lb). 1 lb in ounces. 1 pound (lb) is equal to 16 ounces (oz): 1 lb = 16 oz How to convert Pounds to Ounces The mass m in ounces (oz) is equal to the mass m in pounds (lb) times 16: m(oz) = m(lb) × 16 Example Convert 5 lb to ounces: m(oz) = 5 lb × 16 = 80 oz Pounds to Ounces conversion table Pounds (lb) Ounces (oz)    0 lb 0 oz    0.1 lb 1.6 oz    1 lb 16 oz    2 lb 32 oz    3 lb 48 oz    4 lb 64 oz    5 lb 80 oz    6 lb 96 oz    7 lb 112 oz    8 lb 128 oz    9 lb 144 oz    10 lb 160 oz    20 lb 320 oz    30 lb 480 oz    40 lb 640 oz    50 lb 800 oz    60 lb 960 oz    70 lb 1120 oz    80 lb 1280 oz    90 lb 1440 oz    100 lb 1600 oz    1000 lb 16000 oz