PROGRAMMING FOR PROBLEM SOLVING LAB 1. Write a simple program that prints the results of all the operators available in C (including pre/ post increment, bitwise and/or/ not, etc.). Read required operand values from standard input. 2. Write a simple program that converts one given data type to another using auto conversion and casting. Take the values form standard input. 3. Write a program for find the max and min from the three numbers . 4. Write the program for the simple, compound interest. 5. Write program that declares Class awarded for a givenpercentage of marks, where mark <40%= Failed, 40% to <60% = Second class, 60% to <70%=First class, >= 70% = distinction. Read percentage from standard input. 6. Write a program that prints a multiplication table fora given number and the number of rows in the table. For example, for a number 5 and rows = 3, the output sh...
Comments
Post a Comment