#include <stdio.h> int main(void) { int n; printf("Enter the number: "); scanf("%d",&n); int a=100; for(int i=1;i<=n;i++){ printf("%d ",a); a=a-3; } return 0;}
34
Enter the number: 100 97 94 91 88 85 82 79 76 73 70 67 64 61 58 55 52 49 46 43 40 37 34 31 28 25 22 19 16 13 10 7 4 1
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!