Starting from:

$25

ITDSIU19023- Fundamentals Of Programming: Lab 02 Solved

Write a program that inputs an n-digit number then output its n digits from least to most significant:
 
 
Input: 132768

Output: 8   6  7  2  3  1

Write a program to input integers, the program ends when user input 0. Print the minimum (different from 0) and maximum number (different from 0) among the input numbers:

Input: -3 5 -2 9 8 10 5 -1 0

Min: -3

Max: 10           
 
 

Write a program to find all prime number less than a given integer N (optional: provide an optimal solution)

 
 
N = 10

Output: 2 3 5 7            
 

Given number x and y. Using only plus, minus, multiply and divide to evaluate the following equation using no more than 16 operations:
                            3x2y2 – 2xy2 – 7x2y – 4y2 + 15xy + 2x2 – 3x +10y +6

More products