Assignment 2template
Assignment 2template
Roll No:
1. Print the text “Hello World" twice
Program Output
2. Take two numbers and print the outputs following operations a+b, a-b, a*b, a/b, a%b, a++,
a--
Program Output
5. Take a character and compare it to find whether vowels are present or absent.
Program Output
6. Print numbers 1-10 in ascending and descending order using loop statements.
Program Output
7. Take the input of two numbers, and find the sum of the squares and the sum of their cubes.
Program Output
8. To find the largest of four numbers.
Program Output
9. Take the coefficients of the quadratic equations of the form ax2 + bx + c = 0 as inputs, and
check whether real roots are possible or not. If possible, find out the roots.
Program Output
10. Print the following pattern.
Program Output