Write a program to input name and numbers and print that name that many number of times.
in QB64
Answers
Answered by
1
Answer:
#include <iostream>
using namespace std;
int main()
{
int n;
cin>>n;
string name;
for(int i=0;i<n;i++)
{
cout<<name<<endl;
}
return 0;
}
Explanation:
Answered by
4
CLS
INPUT "ENTER NAME: ";N$
INPUT "ENTER NUMBER: ";NUM
FOR I = 1 TO NUM
PRINT N$
NEXT I
END
Similar questions
Math,
2 months ago
Hindi,
2 months ago
History,
2 months ago
Sociology,
4 months ago
Social Sciences,
4 months ago
Social Sciences,
10 months ago
Math,
10 months ago