c++ Programs
-
Upload
sugandh-gupta -
Category
Documents
-
view
89 -
download
1
Transcript of c++ Programs
KALINDI COLLEGE
Practical file: Presented by Sugandh gupta Bsc.(h)comp.sci.(1 sem) 1003886st
//A PROGRAM TO PRINT SUM AND PRODUCT OF INTEGERS DIGITS #include #include main() { clrscr(); int n,prod=1,r,sum=0; coutn; while(n!=0) { r=n%10; prod=prod*r; sum=sum+r; n=n/10; } cout