Quote
Write a program that generates five random numbers between 1-30, for each nunber generated, your program should print a line containing that number of adjacent asterisks. Your code must your a for loop to generate five numbers and a for loop nested inside this loop to print the asterisks.
#include <iostream>
using namespace std;
int main()
{
int random;
int number;
for (int random=1; random <= 30; random++)
cin << number;
return 0;

New Topic/Question
Reply
MultiQuote








|