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
Biology,
3 hours ago
English,
5 hours ago
Social Sciences,
7 months ago
Social Sciences,
7 months ago