Analysis of the same cause search problem in C language
This article mainly explains the "C language co-cause search topic analysis". The explanation content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought and go deep into it slowly. Let's study and learn "C language co-cause search topic analysis"!
Same cause search
1. Topic description
Find out the numbers between 10 and 1000 which are divisible by 2, 3 and 7 at the same time, and output them.
One per line.
two。 Format and sample
Input
None
Output
One number per row
Sample input
None
Sample output
Result
3. Reference answer 1#include
2int main ()
3 {
4 int i
5 for (I = 10; I < 1000; iTunes +)
6 {
7 if (I% 2 = = 0 & & I% 3 = = 0 & & I% 7 = = 0)
8 printf ("% d\ n", I)
9}
10} Thank you for your reading. the above is the content of "C language co-cause search topic analysis". After the study of this article, I believe you have a deeper understanding of the problem of C language co-cause search topic analysis. the specific use of the situation also needs to be verified by practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!