Program
No 11. Write a program in basic to input any 3 number and print the smallest.
No 12. Write a program in basic to input a number and check whether it is even or odd.
No 13. Write a program in basic to print the sum of first 10 natural number.
No 14. Write a program in basic to print the sum of first 10 even number.
No 15. Write a program in basic to input a number print it's successor and predecessor.
No.16
Write a program in Basic to input a number and print all it's factors.
No.17
Write a program in Basic to input a number and print the factorial value of that number.
No.18
Write a program in Basic to print the table of 9.
No. 19
Write a program in Basic to input Basic Salary (BS) of an employee and calculate Net Salary (NS).
Where
Daily Allowance (DA) is 40% of Basic Salary.
House Rent Allowance (HRA) is 35% of Basic Salary.
Others Allowance (OA) is 30% of Basic Salary.
Hints:
Net Salary=BS+DA+HRA+OA
No. 20
Write a program in Basic to input marks of 5 different subjects and calculate average.
If average is less than 40 then print Fail.
If average is more than 40 but less than 60 then print good.
If average is more than 60 but less than 80 then print very good.
If average is more than 80 then print excellent.
Answers
Answered by
0
Answer:
sorry I can't tell you the answer for all the programs . I this program is correct mark me as brainliest
Explanation:
/ C++ implementation to find
// the smallest of three elements
#include <bits/stdc++.h>
using namespace std;
int main()
{
int a = 5, b = 7, c = 10;
if (a <= b && a <= c)
cout << a << " is the smallest";
else if (b <= a && b <= c)
cout << b << " is the smallest";
else
cout << c << " is the smallest";
return 0;
}
Similar questions