0

How to create a function that prints all even numbers smaller than the input. The function shld tKe one datatype of integer.

Your program should take an input of a number The should should have at least one function with a parameter of datatype integer The program should output all the even integers smaller than the input made by the user.

11th Jan 2019, 10:08 AM
sule yazid
sule yazid - avatar
3 ответов
+ 9
here are some ways to solve it : ● run a loop from a=0 till a is less than (input taken) ○ print a in each iteration ○ then do a=a+2 in each iteration ●run a loop from b=0 to b=(input taken - 1) ○ if b%2==0, then print b (in each iteration)
11th Jan 2019, 12:12 PM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 4
Post ALWAYS your code for get practical help because that is necessary for filter who want only own homeworks made by other users.
11th Jan 2019, 10:21 AM
KrOW
KrOW - avatar
0
using c programming, create a program that counts the number of letters in a name. The user should be able to input the name
18th Jan 2019, 10:21 AM
sule yazid
sule yazid - avatar