Facebook
From Chocolate Hornbill, 3 Weeks ago, written in Plain Text.
This paste is a reply to Re: Untitled from Eratic Cheetah - view diff
Embed
Download Paste or View Raw
Hits: 63
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5.     printf("Enter a value and find out if the number is even n");
  6.     int num = 0;  /// the number
  7.     scanf("%d", &num);
  8.     printf("%d is %s n", num , ((num % 2) ? "odd" : "even"));     ///ternary if function
  9.  
  10.     return 0;
  11. }
  12.  

Replies to Re: Re: Untitled rss

Title Name Language When
Re: Re: Re: Untitled Bistre Stork text 3 Weeks ago.