October 2018 1 22 Report

Mam podany program który trzeba poprawić (uzupełnić) według algorytmu(w załączniku).

Program:

#include<iostream>
#include<stdio.h>
#include<stdlib.h>
using namespace std;
int main()
{
int tab[5];
int i;

for (i=0;i<=5;i++)
{
tab[i]=(rand()%50)+i;
cout<<tab[i]<<endl;
}
}


More Questions From This User See All

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.