Day#10 [ 21 Day — C Programming ]

Practice , Practice & Practice

  1. “The more you practice the better you’ll be, the harder you train the great in you they’ll see.” -Alcurtis Turner
  2. “If you don’t practice, you don’t deserve to win.” -Andre Agassi
  3. “I’m a strong believer that you practice like you play, little things make big things happen. “ -Tony Dorsett
  4. “Sweat more in practice, bleed less in war.” -Spartan Warrior Credo
  5. “Practice doesn’t make perfect. Practice reduces the imperfection.” -Toba Beta, Master of Stupidity

Conditional Statement :

1. Write a program to print whether given number is even or odd .

Example-1 :-

2. Write a program to print whether given number is positive or negative .

Example-1 :-

3. Write a program to print number of days and name of the month for a given number ( 1-12 ) .

Example-1 :-

4. Write a program to check whether given character is Vowel or Consonant .

Example-1 :-

5. Write a program to print largest number among given three numbers .

( Input is three space seperated integers )

Loop Statement :

1. Write a program to print all natural numbers upto given n .

Example-1 :-

2. Write a program to print sum of all natural numbers upto given n .

Example-1 :-

3. Write a program to print product of all natural numbers upto given n ( Factorial of n ) .

Example-1 :-

4. Write a program to print sum of digits for a given number .

Example-1 :-

5. Write a program to print reverse of given number .

Example-1 :-

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Vikas Shekhawat

Vikas Shekhawat

63 Followers

Sole Master | Software engineer and a happy 😊 person | Former Irresponsible Boy !!!