Finding-the-Minimum

Problem Given 7 numbers, write a program that prints the smallest of those numbers. input Seven numbers are given in the first line. output Print the smallest value on the first line. Solution using using first value using & Dot spread using

Read More

Print the sum from 1 to N

Problem Write a program that outputs the sum from 1 to N when a natural number N is input. input A natural number N less than or equal to 20 is entered in the first line. output Prints the sum from 1 to N on the first line. Solution using

Read More

Number of Pencils

Problem One dozen pencils is 12. Write a program that calculates the number of pencils needed when N students enter the number of students, assuming that one pencil is distributed to each student. input A natural number N less than or equal to 1000 is entered in the first line. output Print the…

Read More

Identify Triangle

Problem Given three bars of different lengths (A, B, C), “YES” is output if these three bars can form a triangle, and “NO” if they cannot be made. input The first line gives you 100 different lengths of bars A, B, and C. output Print “YES” and “NO” on the first line. Solution using using using

Read More

Min of Three

Problem Write a program that accepts natural numbers A, B, and C less than or equal to 100 and prints the smallest of the three numbers. (don’t use sort) input Three natural numbers less than or equal to 100 are entered in the first line. output Print the smallest number on the first line. Solution…

Read More
Page 16 Of 26