#include <iostream> using namespace std; void func1(); void func2(); int count; int main() { int i; for(i=0; i<10; i++) { count = i * 2; func1(); } return 0; } void func1() { cout << "count: " << count; cout << '\n'; func2(); } void func2() { int count; for(count=0; count<3; count++) cout << '.'; }
Ahmed_191 0 Newbie Poster
Schol-R-LEA 1,446 Commie Mutant Traitor Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.