U E D R , A S I H C RSS

데블스캠프2006/월요일/연습문제/if-else/이경록

== 2006///if-else/ ==

~cpp

#include<iostream.h>

int main(void)

{
	int a,b;

	cout<<"50~100  \n";

	cin>>a;

	if(a<50 || a>100){
		cout<<" .\n";
		return 0;
	}
	
	else {
		for(b=1;b<=a;b++){
			if(b % 3 == 0 || b % 5 == 0){ 
				cout<<b<<"\n";
		}
	}
	
}
	

				
				

	
	return 0;
}


2 !
~cpp
#include<iostream.h>

int main(void)

{
	char a;

	cout<<",,  1  !\n";

	cin>>a;

	if(a>=48 && a<=57) cout<<"   \n";

	else if(a>=65 && a<= 90) cout<<"   \n";

	else if(a>=97 && a<= 122) cout<<"   \n";

	else cout<<"   \n";
	
	return 0;
}

Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:29:04
Processing time 0.0162 sec