0% found this document useful (0 votes)
4 views

C-- assignment 3

Assignment 3 on cpp

Uploaded by

singhvi.monika19
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

C-- assignment 3

Assignment 3 on cpp

Uploaded by

singhvi.monika19
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Assignment Question

1. Write a program of accepting value form user?


2. Write a program to calculate area of triangle .((base * height)/2)
3. Write a program to calculate area of rectangle. ( length * breadth )
4. Write a program that calculate simple interest ( P * T * R ) / 100
5. Write a program that accept any two numbers and swap their value without using third
variable.
6. Write a program to calculate sum of two numbers.
7. Write a program to calculate area of circle. ( r 2 )
8. Write a program to calculate area of square. ( s 2 )
9. write a program to print the output of the program in this format.?
************************************************
Roll No. : Name :
Sub 1 : Sub 2 :
Sub 3 : Sub 4 :
Total : Percentage :
************************************************
10. write a program to print the output of the program in this format.?
India railway
************************************************
Emp Name : Post :

Basic Pay : TA :
HRA : DA :

Deduction : Net Pay :


11. Input a number and check number is even or odd?
12. Find maximum of two numbers?
13. Input a number and check number is divisible by 3 and 7 ?
14. Write a program of increment and decrement operators?
26/8/2021
15. Input a lower case character and convert it upper case letter.
16. Input a lower case character and convert it lower case letter.
18. Input a number and check number is even or odd?
19Input a number and print the table of that number.
20. Printing numbers between 1 and 100 which are completely divisible by 3 and 5.

21. Find of n numbers maximum?


22. To find number of digits(count ) in a given number.
23. To calculate gross salary of the person. Give basic salary ( BS ) as input. If BS is > 5000
DA = 55% of BS and HRA = 15% of BS else DA=45% of BS and HRA=10% of BS.
18/9/2021
24. Write a program to Print the following pattern:
1
12
123
1234
12345

25. Write a program to print the following pattern:


*
**
***
****
*****

26. Write a program to print the following pattern:


*****
****
***
**
*
27. Write a program to print the following pattern:
. *****
****
***
**
*
28. Write a program to print the following pattern:

*
***
*****
*******
*********
29. Write a program to print the following pattern:

*
* $ *
* $ * $ *
* $ * $ * $ *
* $ * $ * $ * $ *

30 . Write a C++ program to find the largest element of a given 1-D array of integers.
31. Write a C++ program to separate even and odd numbers of an array of integers. Put all even
numbers first, and then odd numbers.
32. Accept 5no. From user in 1D array and display perfect number?
33. Accept 5no. From user in 1D array and display prime number?
34. Accept 5no. From user in 1D array and display sum of digits?
35. Accept 10 no. from user in 1 d array and display complete accessing sorting.
36. Accept a integer in 3*3 array and display row wise sum?
37. Accept a integer in 3*3 array and display column wise sum?
38. Accept a integer in 3*3 array and display maximum of row wise?
39 Accept a integer in 3*3 array and display maximum of column wise?
40 Accept a integer in 3*3 array and display sum of diamonds?
41. Accept a integer in 3*3 array and display complete accessing sorting?
42. Accept a integer in 3*3 array and display second maximum numbers?

You might also like