05

Document Sample
05 Powered By Docstoc
					#include<iostream.h> #include<conio.h> void ciframare(long int numar) {int max,cifra; max=0; while(numar) {cifra=numar%10; if(cifra>max) max=cifra; numar=numar/10;} cout<<max; cout<<endl;} void main() {clrscr(); long int numarcitit; do {cin>>numarcitit; ciframare(numarcitit);} while(numarcitit!=0); getch();}


				
DOCUMENT INFO
Shared By:
Categories:
Tags:
Stats:
views:3
posted:12/9/2008
language:
pages:1