Computer Science, asked by pretty14, 11 months ago

to ask a number input from the user it and print it 6times please help me guys​

Answers

Answered by charlie1505
1

Answer:

#include <stdio.h>

int main()

{

int number;

// printf() dislpays the formatted output

printf("Enter an integer: ");

// scanf() reads the formatted input and stores them

scanf("%d", &number);

// printf() displays the formatted output

for(int i=1;i<=6;i++)

{

printf("You entered: %d", number);

}

return 0;

}

Similar questions