Write a program which takes two integers (num1 and num2) as input from the user. The program should display all the prime numbers between num1 and num2. i) The program can use only for loops.
Write a program which takes two integers (num1 and num2) as input from the user. The program should display the result of num1 to the power num2. i) The program can use only while loops.
Write a program which takes two integers (num1 and num2) as input from the user. The program should display the result of num1 to the power num2. i) The program can use only for loops.
Write a c program to print 100,99,98,97
Output the sum of all odd numbers between Num1 and Num2. (use loop); create a user-defined function called sum(). Declare a variable called sumodd in the main() for the sum(). sum is a value returning function. Use sumodd to hold a returned value.
Allow the user to input two integers. Variables, Num1 and Num2 (Num1 must be less than Num2, values must be a positive number) (use loop); create a user-defined function to validate the users input.
Create a logical calculator that takes a value, a basic operator (&,!,l,a) and all values from user input and have it print the result of the operation. The logical operations should be wrapped inside of functions.
Write a function int solution(int A[], int that given an array A consisting of N integers, returns the sum of all integers which are multiples of 4
Write a java code that finds out the area of three geometric shape: Circle, Triangle, Square. Give the user an option to select which geometric shape's area he/she wants to find out. Based on the choice take necessary input and find out the result. Use different area method for each geometric shape. Print the result in main method.
Write a program which takes two integers (num1 and num2) as input from the user.
Your program should display on the screen the result of i) num1 + num2, ii) num1 * num2, and iii) num1 - num2.
You are not allowed to use the + or - or * operators. E.g., cout<<num1+num1<<num1*num2<<num1-num2; is not allowed. += or -= or *= operators are also not allowed.
You HAVE TO USE loops and the ++ and -- operators. Code for num1+num2 is already available in the slides. Use that for this assignment.