Hi Can anyone Help me for the program in C
Using Looping Statement Create A program That Input A number And Then Convert It in
Asterisk using looping statement..eg input number 5 and the output is the 5 asterisk(*****)..help me plss...:icon_smile:

Recommended Answers

All 3 Replies

Exactly what you want to do... if you just want to print * then it could be done by using a loop. scan a value from the user and run your loop like this..

int i,num;
// input a value here  from user in num..
for(i=1;i<=num;i++)
   putchar('*');

Exactly what you want to do... if you just want to print * then it could be done by using a loop. scan a value from the user and run your loop like this..

int i,num;
// input a value here  from user in num..
for(i=1;i<=num;i++)
   putchar('*');

what is putchar in turbo c statement??
Transfer the code in turbo c plss...not c++!!

thx i just got it now...thx for you....

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.