hey guys how would i print something 60 times without actually typing the character out 60 times.
printf("#"*60);
^ which is complete rubbish and doesnt work, but what is the syntax for it?
cheers!
hey guys how would i print something 60 times without actually typing the character out 60 times.
printf("#"*60);
^ which is complete rubbish and doesnt work, but what is the syntax for it?
cheers!
hello dost
U can print a characher many itme by using a for loop or using while loop
i.e.
for(i=0;i<60;i++)
printf("#");
for(i=0;i<60;i++)
printf("#");
U can print a character by using control statements like for loop and also by while loop.:)
for(i=0;i<60;i++)
printf("#");
hey
i.e.
int i=1;
while (i<=60)
{
printf("#");
i++;
}
or
do
{
printf("#");
i++;
}while(i<60)
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.