How To Reverse A String Without Reversing The Punctuation On That Line – The Shining Part 3 Problem Solution In C

By |2017-04-07T22:11:51+00:00October 31st, 2016|Categories: C/C++, Programming|Tags: , , , , , , |

The Shining-Part3 Assume, in \The Shining-Part3", the son makes it even worse by reversing the words in a sentence in place but leaving the punctuations as they are. For example, the son writes \NUR, REHTOM! REDRUM!!" to mean \RUN, MOTHER! MURDER!!". Now the mother [...]

Drawing Isosceles Triangle of A Given Height Using Java

By |2017-04-07T22:11:51+00:00October 26th, 2016|Categories: Java, Programming|Tags: , , , , , , |

hey everyone so i tried write a code on drawing isosceles. if you have any easier ways to solve it do let me know... import java.util.Scanner; public class task{ public static void main(String args[]){ Scanner anik = new Scanner(System.in); System.out.println("give a line number"); int [...]

Adding Two Matrices Vertically and Horizontally in C Language

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

  Hi guys , I just tried to code to add two matrices vertically and horizontally . Check the screenshot I’ve attached above . I hope you like it , and just let me know in comment if you have any better solution . [...]

Transpose Matrix With Summation and Difference Between Main and Transpose Matrix in C

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

  Hi guys , I just tried to code of transpose matrix and then summation and difference between main and that transpose matrix . Check the screenshot I've attached above . I hope you like it , and just let me know in comment [...]

Swapping Values of variables in C Programming

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

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+00:00October 15th, 2016|Categories: C/C++, Programming|Tags: , , , , , , , , , , , , , , , , , , , , , |

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+00:00October 15th, 2016|Categories: C/C++, Programming|Tags: , , , , , , , , , , , , , , , |

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 2 (Left Side Opposite Triangle) in C Programming

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

Just made some little changes in the first code. It was easy. If you have complete idea of for loop then you can do it yourself. Feel free to share your code. Here is the Code :   int x,y; for (x = 1; x [...]

Star Printing : pattern 1 (Left Side Triangle) in C Programming

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

I was just trying to solve this problem in my own way. If you have any better code then please feel free to share it in the comment section. Here is the Code : int main() { int i, j; for (i = 1; [...]