Skip to main content

Posts

Showing posts from August, 2021

Happy Rakshabandhan 2021 wish using c program

D id you know How to wish your sister and brother on this Raksha bandhan 2021 using c program. Yes ! We can wish our brothers and sisters by doing coding in c. Here is the code you should look. August 22 is the Rakshabandhan day. It's very important event where sister gives protection to her brother using " Rakhi" which is threade Decorated with various shiny materials. "Rakhi" is the worlds biggest security provided by sister to brother. This day brings family members , friends together. Overall Rakshabandhan is awesome event. In the above c program we used char data type. which is array of character. means they are strings. We declared following array of characters or string array. Brother, sister, message are the most importantant array of character and remained two are wishword and startword. wishword Array contain group of words which are following : fabulous, happy, sweet great etc. These are the word which makes you wishes standout. startword is the

How to use IF condition in C

Did you know conditions are very essentials component of programming. Without conditions we can't able to perform critical task such as identifing which one greater or small, on or off etc. We can't able to compare without conditional statement. In this blogspot we are going show you how to use IF condition in C programming. In above c program we declared header file stdio then main() function and inside the curly bracket first of all we declared two variables that is int a and int b. Then assigned 10 and 20 value to a and b. Now we have to check which number is greater. Here is the need of conditional statement. Let's use IF condition . IF condition is the most popular conditional statement. let's write If() and inside the simple bracket add this logic ( b > a ) . Which means b is greater than a. When this condition is true then print b is greater. Note that after declaration of IF condition Don't forget to add Curly brackets. Now check output and output i