Using a flowchart, develop the logic for a program that accepts a number as input and displays the number five times.
/********************print.cpp********************/
#include<iostream>
using namespace std;
int main()
{
int number,i=1;
cout<<"Enter an number";
cin>>number;
while(i<=5){
cout<<number<<" ";
i++;
}
return 0;
}
/***************output****************/
Please let me know if you have any doubt or modify the answer, Thanks :)
Get Answers For Free
Most questions answered within 1 hours.