Create zadacha6.cpp

Using for.