# Star Printing : pattern 3 (Right Side Triangle) in C Programming

/Tag: Star Printing : pattern 3 (Right Side Triangle) in C Programming

## Codeforces Round #379 (Div. 2), problem: (B) Anton and Digits Solution In C/C++

By |2017-04-07T22:11:50+06:00November 16th, 2016|Categories: C/C++, Programming||

Hey guys I just tried the anton and digits problem , hope you might like my solution feel free to comment better solution . #include<bits/stdc++.h> using namespace std; int main() { long long int two, thr, fv, sx,ans, Min; ans=0; cin>>two>>thr>>fv>>sx; Min = two; [...]

## Swapping Values of variables in C Programming

By |2017-04-07T22:11:51+06:00October 17th, 2016|Categories: C/C++, Programming, Uncategorized||

This is really a easy code for swapping values of variables.Try to understand the logic. We have to take another extra integer (temp). Logic : Stored the value of "b" in "temp". Then stored the value of "a" in "b".Then "c" in "a". Finally [...]

## Prime Number Program in C Language

By |2017-04-07T22:11:51+06:00October 15th, 2016|Categories: C/C++, Programming||

This is just a simple program for Prime Number.  Logic is simple. Checking the inputed number if it is divided by 2 or not. We just need to use a for loop. If you any other efficient  code feel free to share with us. [...]

## Star Printing : pattern 4 (Right Side Opposite Triangle) in C Programming

By |2017-04-07T22:11:51+06:00October 15th, 2016|Categories: C/C++, Programming||

If you have seen previous patterns then it is very easy. These patterns helped me understanding loops. Here is my Code : int p, q, r, k = 5; // "k" is for taking inputs from users. for (p = 1; p <= k; [...]

## Star Printing : pattern 3 (Right Side Triangle) in C Programming

By |2017-04-07T22:11:52+06:00October 15th, 2016|Categories: C/C++, Programming||

You have to print "spaces" like the pattern 2  and print the "stars" like pattern 1. For printing "spaces" you have to use another loop before printing the "stars" and after the first loop. My code is not that good. if you have any [...]