Computer Science, asked by leannamassar9, 1 month ago

1. WAP to print teach.
2. WAP to print
3. WAP to print
4. WAP to print
5. WAP to print
6. WAP to print
7. WAP to print
between the
8. WAP to print
statements.
9. WAP to print respectively.
10. WAP to print
the names of 5 subject teachers along with the names of the subjects they
each character of your name in a separate line.
the names of four houses of your school with the names of house colors. your name and surname in same line but using two print statements. the name of any four drinks along with their subjects.
your name, class and house in different lines.
the names of colors of a rainbow in different lines by leaving a blank line name of each color.
the names of your favorite flower and its color in one lie using two print
the names of any two ice creams with their flavors in first and third line
COMPUTER APPLICATIONS
PRINTING BASED PROGRAMS
the names of 3 input and 3 output devices by leaving a blank line between each of them.
INITIALIZATION BASED PROGRAMS
ASSIGNMENT
Initialization or assignment means to assign a value to a variable before the actual working of the program. The value is written on the right hand side and the variable to which it is assigned is written on the left hand side.
Syntax: datatype variable= constant;
Ex: int n = 5 ;
1. WAP to assign your city to a variable print it with appropriate message.
2. WAP to assign three integer variables with marks of English, Maths, Computer. Print
them with the heading of the subject name.
3. WAP to assign your favorite color and favorite fruit with 2 variables. Print them with a
message.
4. WAP to assign your city, state and country to 3 variables print them with appropriate
message.
5. WAP to assign your height and weight to 2 variables. Print them with message.
6. WAP to initialize values 2 and 4 to variables a and b. Calculate and print the sum and
product of the numbers and print with proper message.
7. WAP to convert and print 10 rupees to equivalent paise.
8. WAP to assign cost price and selling price of a table. Calculate and print the profit.
9. WAP to calculate and print the area and perimeter of a rectangle field of length 20 and
breadth 30.
10. Two angles of a triangle are 40 and 60 degree respectively. Calculate the third angle,
print all the three angles in different lines.
11. WAP to assign a number to a variable. Calculate the half, double, square and cube of the
number. Print them in different lines.
12. WAP to assign a number greater than 10 to a variable. Print the last digit of the number.

13. WAP to assign principle, rate and time. Calculate and print the simple interest with message.
14. WAP to assign a number to a variable. Print the first three multiples of that number in different lines.
15. WAP to assign side of a square to a variable. Calculate and print the area and perimeter of the square in the same line using two print statements along with appropriate message.

Answers

Answered by meandnisha12345
2

Answer:

bshhsbshzhvs

Explanation:

gsfcqvqb zhw

Similar questions