K= -3/T +5+F3 – 2 * P т P 5 % If value of T is more than or equals to 10% 25 of F If value of T is less than 25 and greater than or equal to 16 of F If value of T is less than 16 and 2 % greater than or equals to 9 of F If value of T is less than 9 1 % of F Print the values of T, F, P and K. Write a C program to read two floating point numbers T and F from the console and find the value of K using the following formula and if else if ladder. Instructions: Use Codeblocks / to do programs. The default compiler that this Code Blocks packet comes with is MinGW. It is an open-source, integrated, cross-platform development environment that supports the use of multiple compilers, such as: GCC (MingW/GNU GCC), MSVC, Digital Mars, Borland C++ 5.5, and Open Watcom. (10 Marks) 4 Sample Output: Enter a number 1 : 1 Enter a number 2 : 2 Enter a number 3 : 3 Enter a number 4 : Enter a number 5 : 5 Enter a number 6: 6 Enter a number 7 Enter a number 8 8 Enter a number 9: 9 Enter a number 10 : 99 : Product of numbers less than 4 is 6 Product of numbers greater than 8 is 891 Code Blocks is an excellent option for programming in C++. ![]() Write a program that accepts 10 integers from the user using loops and then displays the product of numbers which are less than 4 and product of numbers which are greater than 8. Write / copy paste the program in the space provided or upload the file. Transcribed image text: General Instructions: Use code blocks or online compiler to do the given program.
0 Comments
Leave a Reply. |