Docstoc

04

Document Sample
04 Powered By Docstoc
					#include<iostream.h> #include<conio.h> void main(){ long n,nc,nn,s=0; cout<<”n=”; cin>>n; nn=n;nc=0; while(nn){nn=n/10; nc++;} if(nc%2==1)n=n/10; while(n){s=s+n%10; n=n/10;} cout<<”suma cifrelor de pe poz pare=”<<s; getch();}


				
DOCUMENT INFO
Shared By:
Categories:
Tags:
Stats:
views:28
posted:10/30/2008
language:Japanese
pages:1
clamitze clamitze
About