Demo entry 6353495

c++

   

Submitted by anonymous on Mar 31, 2017 at 15:14
Language: C++. Code size: 237 Bytes.

#include<iostream.h>
#include<math.h>
void main()
     {
	int m, k, i ; //定义m、k、i三个变量
	for( m=1; m<=10; m+=2 ) //定义for循环设m从1开始,m自增2,直到m小于等于10结束
	{ 
		k = m/3;
		for( i=2; i<=k; i++ )
			if( m%i ) cout << m << "  ";
	}
     }

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).