C++ Program to Print number patternIn c++ we can easily print any number patter just we need two for loop one inner loop for increment and decrements and other for line break.
If we do i++ instead of c++ what will we get?
Same
How to make the pattern like 13265410987 and so on
Bro ithuku coding theriyuma
Po da
Can someone make this for qbasic?
Im far better developer than u
2 4 6 83 7 11 154 10 16 22can u print this using 2 for loops
Solve this using two variable only
this is 2 variable versionint main(){int i=1,j=1; while(i<=10){ printf("%d",i); if(i>=j*(j+1)/2){ printf("\n"); j++; } i++; } return 0;}
This comment has been removed by the author.
Print 123 654 789..any body please guys
nice
C++ Program to Print number pattern
ReplyDeleteIn c++ we can easily print any number patter just we need two for loop one inner loop for increment and decrements and other for line break.
If we do i++ instead of c++ what will we get?
ReplyDeleteSame
ReplyDeleteHow to make the pattern like
ReplyDelete1
32
654
10987 and so on
Bro ithuku coding theriyuma
DeletePo da
DeleteCan someone make this for qbasic?
ReplyDeleteIm far better developer than u
ReplyDelete2 4 6 8
ReplyDelete3 7 11 15
4 10 16 22
can u print this using 2 for loops
Solve this using two variable only
ReplyDeletethis is 2 variable version
Deleteint main()
{
int i=1,j=1;
while(i<=10){
printf("%d",i);
if(i>=j*(j+1)/2){
printf("\n");
j++;
}
i++;
}
return 0;
}
This comment has been removed by the author.
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteThis comment has been removed by the author.
ReplyDeletePrint 123
ReplyDelete654
789..any body please guys
nice
ReplyDelete