to ask a number input from the user it and print it 6times please help me guys
Answers
Answered by
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
Computer Science,
6 months ago
English,
6 months ago
Chemistry,
6 months ago
Math,
11 months ago
Chemistry,
11 months ago
Computer Science,
1 year ago
Hindi,
1 year ago