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.