You know, I was lying when I said the last time that numbers associated with 3 are my favorite, because the one I actually like the most in the world are even numbers! But to make things harder for you, you have to pick the even numbers from a range of two given numbers. Ha!
Now, let's try this one more time!
Instructions:
Input
1. The starting point
2. The ending point
Output
The first line will contain a message prompt to input the starting point.
The second line will contain a message prompt to input the ending point.
The last line contains the integers within the range.
Let’s play a game of FizzBuzz! It’s quite the same with your childhood "PopCorn" game, but with a little bit of twist to align it with programming.
Are you ready?
Instructions:
Input a positive integer in one line. This will serve as the ending point of your loop.
Loop from 1 to the ending point (inclusive) and perform the following statements:
If the number is only divisible by 3, print "Fizz"
If the number is only divisible by 5, print "Buzz"
If the number is divisible by both 3 and 5, print "FizzBuzz"
If nothing is true in the previous conditions, skip the number
Whole numbers are great, but I think we should also pay attention to decimal numbers, too.
So, how about we make a program that involves a lot of decimals?
Instructions:
2. A, e, i, o, u?
by CodeChum Admin
We've had enough about numbers, so why don’t we try evaluating characters now?
If you know how to identify what the vowel letters are, and you know how to count up to 5, then you’re good to go!
Instructions:
Using a do…while() loop, continuously scan for characters (one per line) and print it out afterwards. Remember to place a space before the character's placeholder when scanning so that the newline characters will be ignored and the correct values will be scanned.
The loop shall terminate due to either of the following reasons:
The inputted character is a vowel
The number of inputted characters has already reached 5.
For all of the test cases, it is guaranteed that if the number of inputted characters is less than 5, then there must be a vowel from among the inputted characters. Also, it is guaranteed that all the characters are in lowercase.
Instructions
Input four decimal numbers, they could be positive or negative.
Add all the negative numbers, and print the sum, up to 2 decimal places.
Input
A line containing four decimals/floats separated by a space.
Please program to output all integers between 0 and 200 that are divisible by 3 and whose single digit is 6.
Write a c program that reads a number representing the amount of minutes for a call
and calculates and prints the cost of the call
Create a program like SIMSIMI in the playstore that would ask the user at least 10-20 question. The program must interact with user using details about the user like name, birthday, etc.
Make me a program that accepts a random string (a series of characters). Then, look for a digit from that string and if there's at least one, print out "That one!" but if there's none, print out "No one..."
I know this is too sudden to ask you, but thank you in advance!
Tip: After your scan for the size, add a space after the placeholder like this so that the newline character directly after the number won't be scanned as one of the characters:
scanf("%d ", &size);
Input
1. Size of the string
2. Characters of the string
Output
The first line will contain a message prompt to input the size of the string.
The second line will prompt for the characters of the string.
The last line contains the appropriate string.
Enter·the·size:·18
Enter·the·characters:·CodeChum1sAwesome!
That·one!