Write a C# program that will display the following pattern: 1 2 3 4 5 1 2 3 4 1 2 3 1 2 1
Answers
Answered by
0
Answer:
#include <iostream>
using namespace std;
int main(){
int i=1,j=10;
for(int k=0;k<10;k++){
cout<<j<<" "<<i<<" ";
j--;i++;
}
cout<<"\n";
return 0;
}
Similar questions
Math,
28 days ago
Math,
28 days ago
English,
1 month ago
Social Sciences,
9 months ago
Social Sciences,
9 months ago