Computer Science, asked by rajnirohilla1984, 4 days ago

4. What will be the output of the following program?
a.Num1=4.5
Num2=2
Print(Numl+Num2)

b. a= int(input("Enter a first number")) b= int(input("Enter a Second number")) print(a+b) print (b)

c.Write a program to assign and print variables to show your family details, such as Father's name, Mother's name, Address, Qualification and Contact number.

d. Write a program to assign and print variables as , Name: Neha , Age: 12, and Grade : 6. C.​

Answers

Answered by gouthamin1608
0

Answer:

a.Output=6.5

b.Output:

Enter a first number 10

Enter a Second number 12

22

12

c.

Program:

Fname=input("Enter Father's name")

Mname=input("Enter your Mother's name")

Address=input("Enter your Address")

Qual=input("enter the Qualification")

CNo=int(input("Enter your contact number"))

print("Your family details are:\n")

print("Father's name: ",Fname,"\n","Mother's name: ",Mname,"\n","Address: ",Address,"\n","Qualification: ",Qual,"\n","Contact Number: ",CNo,"\n")

d.Program:

name=input("Enter your name")

Age=int(input("Enter your age"))

Grade=(input("Enter your Grade"))

print("Name: ",name,"\n","Age:  ",Age,"\n","Grade: ",Grade)

Explanation:

Similar questions