Programs Q Basic
Programs Q Basic
Write a program to INPUT any four numbers and PRINT the sum of the first two numbers and
product of the last two numbers.
2. Write a program to INPUT three numbers and PRINT 30% of their average.
3. Write a program to INPUT length and breadth of a rectangle and PRINT 20% of its area and 40%
of its perimeter.
4. In a class of sixty students, 35% are girls. Write a program to PRINT the total number of boys .
5. In a society there are one thousand people out of which 40 % are men, 35% are women. Now
write a program to PRINT the total numbers of children.
6. A man got a lottery of Rs. 50000, out of which he has given 35% to his wife. Now write a
program how much money is left with him.
7. After getting a salary of Rs. 80000, a man has given 35% to his elder son and 25% to his younger
son. Write a program to PRINT how much money each of them got.
8. Write a program to INPUT any number and PRINT the sum of its 10% and 20%.