THANKS TO MR.MASSGRAVEL FOR THIS ITS REALLY SIMPLE JUST FOLLOW THE INSTRUCTION IN GITHUB GITHUB - https://github.com/massgravel/Microsoft-Activation-Scripts/
Get link
Facebook
X
Pinterest
Email
Other Apps
// // Printing the following Pattern 10 9 8 7 6 5 4 3 2 1
// Printing the following Pattern
10 9 8 7
6 5 4
3 2
1
Source Code -
#include<stdio.h>
intmain(){
intn = 11;
for(inti = 1;i <= 1;i++)
{
for(intj = 1;i <= 10;i++)
{
n = n - 1;
if(n == 6 || n == 3 || n == 1)
{
printf("\n%d ",n);
}
else
printf("%d ",n);
}
}
return 0;
}
// this is my logic you can make your own give it a try best of luck !!
Comments
Post a Comment