

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


int count1=100; int main() { int count1=10; int count3=50; c out<<”Value or outer count1=”<<count1; c out<<” Value or global count1=” <::<count1; { int count1=20; int count2=30; c out<<” Value or inner count1=”<<count1; c out<<” Value or global count1=”<< ::count1; count1+=3; count3+=count2; } cout<<end1; <<”Value or outer count1=”<<count1; <<end1; <<”Value or outer count3 =” <<count3; <<end1; return 0; }
int main() { double fish_count=20.0; double ave_legth= 9.0/12.0; double pond_area= 0.0; double pond_diameter=0.0; const Double fish_factor=2.0/0.5; const double pi=3.14149; pond_area= fish_count* ave_legth* fish_factor; pond_diameter=2.0*sqrt(pond_area/pi); Cout<<end1; <<”Pond diameter required is” <<pond diameter; <<”feet.: “; Return 0; }