0
How to take input "n" and print y ,"n" times in c++
4 Respostas
+ 1
RAJ VIKRAM
As you progress through your course, you will be introduced to the "for loop" which is what you need to resolve your problem.
Keep learning and you can answer this yoirself
+ 1
Thank you☺️☺️
+ 1
#include<iostream>
using namespace std;
int main(){
int n;
cin<<n;
for(int i=0;i<n;i++){
cout<<"y";
}
return 0;
}