Answer to Question #284711 in C++ for papi

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


1
Expert's answer
2022-01-06T05:38:28-0500
#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;
}

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
New on Blog