Answer to Question #340183 in C for Suppp

Question #340183

1. Not Less than Three

by CodeChum Admin

Make a program that will accept an integer and loop from 1 to that integer. Then, print all numbers from that range that are greater than 3.


Let's go!


Input


1. An integer

Output


The first line will contain a message prompt to input the integer.

The succeeding lines contain an integer.


Enter·n:·8
4
5
6
7
8
1
Expert's answer
2022-05-12T15:10:13-0400


#include <stdio.h>


int main(void) {
  int n;
  printf("Input an integer number: ");
  scanf("%i",&n);
  for(int i=3+1;i<=n;++i)
    printf("%i\n",i);
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS