Question #284711

Write a c Program that will print the number series vertically on screen:

10 1 9 2 8 3 7 4 6 5


Expert's answer

#include <stdio.h>
#include <string.h>
#include <ctype.h>




int main(){ 
	int i,j=10;


	for (i=1;i<=j;i++, j--){ 
		printf ("%d %d ", j,i);
	}


	getchar();
	getchar();
	return 0;
}
LATEST TUTORIALS
APPROVED BY CLIENTS