Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

Rpeat the input number

0 votes
asked Jul 14, 2018 by PPriyanka1399 (140 points)

2 Answers

0 votes
answered Jul 16, 2018 by Rahul rajput (140 points)

do

{

printf("enter value");

scanf("%d",&num);    //num is variable 

printf("press <Y> for continue entering);

ch=getch();    //ch is a character type variable

}

while(ch==Y)

0 votes
answered Jul 17, 2018 by lahiru nishshanka
#include <stdio.h>

int main(){
int i,j,k;
printf("enter number:");
scanf("%i",&k);

for(i=1;i<=i;i=i+1){
    for(j=1;j<=j;j=j+1){
        printf("%i",k);
    }
    printf("\n");
}

}
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...