September 2018 1 19 Report

Napisz program ktory wyswietli z tablicy 10-cio elementowej liczby w odwrotnej kolejnosci.Poczatek programu juz napisalam tylko nie wiem co jeszcze dopisac , zeby te liczby potem sie wyswietlily w odwrotnej kolejnosci... prosze o pomoc...

#include<iostream>
using namespace std;
int main ()
{
int dana[10];
for (int i=0;i<=9;i++)
{
cout<<"podaj dana nr"<<i+1<<":"<<endl;
cin>>dana[i];
getchar();
};
cout<<endl;
cout<<endl;
for(int i=0;i<=9;i++)
{
cout<<"dana nr "<<i+1<<" = " <<dana[i]<< endl;

};

getchar();
return 0 ;
};


Recommend Questions



Life Enjoy

" Life is not a problem to be solved but a reality to be experienced! "

Get in touch

Social

© Copyright 2013 - 2024 KUDO.TIPS - All rights reserved.