QUESTION 1 Write a C program to solve the arithmetic expression X=4/2+8*4-(5+23 15 mars QUESTION 2 In this program user
Posted: Sun May 15, 2022 2:27 pm
QUESTION 1 Write a C program to solve the arithmetic expression X=4/2+8*4-(5+23 15 mars QUESTION 2 In this program user is asked to enter the age and based on the input hint scan)the ideise statement checks whether the entered age is greater than or equal to 18 If this condition meet then display message "You are eligible for voting, however the condition doesn't meet the display a different message * You are not eligible for voting (10 marks) QUESTION 3 Write a program to find the age of a person from the following details using these statement and && operator Chid Age - less than 12 Teen Age - 13 to 19 Young Age - 20 to 35 Middle Age - 36 to 50 Old Age - more than 50 (10 marks) QUESTION 4 Given first 10 natural numbers (a) Write a C program to find the sum of first 10 natural numbers using for loop 15 marks) (b) Refer in Q4(a) write program using while-loop 15 mans) (a) Refer in Q4(a) write program using do-while-loop is marks) Assignment 2 msu menagem ENGINEERING & TECHNOLOGY DEPARTMENT C PROGRAMMING TCS10103 ASSIGNMENT 2 Chapter 3 and Chapter 4 QUESTION 5 Write a C program using for-loop to perform a multiplication tables 2 (Sifir 2) using user input (10 marks)