Input / Output

Write program to get name from user and print in the output

Enter your name: Vignesh

Your name is Vignesh


Write program to get name and father name from user and print in the output

Enter your name : Vignesh

Enter your father name: Ganesan

Hello Vignesh Ganesan


Write program to get name and address from user and print in the output

Enter your name : Vignesh

Enter your address: Attipatti, Madurai - 625705

Hello Vignesh, you are in Attipatti, Madurai - 625705


Write program to get name and age from user and print in the output

Enter your name: Vignesh

Enter your age: 27

You are Vignesh, 27 years old.


Write a program to get name , door no, street , place , district and pincode and print in below format

Enter your name:

Enter your door No:

Enter your street:

Enter your place:

Enter your district:

Enter your pincode:

—---------------------

Name : G. Vigneshkumar,

Door No: 4/121,

Street : So uth Street,

Place: Attipatti

District: Madurai

Pincode: 112 121


Write a program to get two numbers and print its sum

Enter number 1 : 10

Enter number 2: 20

Total of 10 and 20 is 30


Write a program to get two numbers and print its difference

Enter number 1: 10

Enter number 2: 40

The difference between 10 and 40 is 30


Write a program to get two numbers and print its multiplication

Enter number 1: 10

Enter number 2: 20

Multiplication: 200


Write a program to get two numbers and print its quotient and remainder

Enter number 1: 105

Enter number 2: 10

Quotient: 10

Remainder: 5

Last updated