CP Lab-3

Post date: Oct 17, 2017 10:25:31 AM

Q1. Write a C program to print the ASCII values vary from 0 to 255. (USING for Loop)

Q2. Write a C program to perform the following arithmetic operations. Accept all the variable values (a, b, c) from the user (a+b)/(c*a) Result = ------------------ (a+c)/2

Q3. Write a C program to print the sum of following series the N terms (N should be accepted from the user) 1+4+7+10+13+16+19+...+N Q4. Write a C programm using for loop to print the following series for N terms (N should be accepted from the user) (1/1) - (1/2) + (1/3) - (1/4) + (1/5) - . . . . + (1/N) You also need to print the sum for th eabove series.