Functional-Assignment1 - #include <iostream> using...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: #include <iostream> using namespace std; int SigDigits(int a,int b); void main(){ int input; int digits = 1; cout<<"Please enter a integer to be evaluated to have signifigant digits returned "<<endl; cin>>input; digits=SigDigits(input,digits); cout<<"The number of Signifigant Digits is "<<digits<<endl; } int SigDigits(int a,int b){ if(a>1){ b++; a = a/10; SigDigits(a,b); } else return b; }...
View Full Document

This note was uploaded on 10/02/2009 for the course CS 4337 taught by Professor Karrah during the Fall '08 term at University of Texas at Dallas, Richardson.

Ask a homework question - tutors are online