PRESENTED BY SONAKSHI SARKAR
A program is set of instructions .
Ans : Computer language (which is C in this case )
Alphabets Digits and Special symbols Constants Variables and keywords Instructions Program
C constants Primary constants Integer constants Real constants Character constants Secondary constants Array
ENTITY THAT VARIES DURING PROGRAM EXECUTION
program header comment preprocessor directives (if any) int main ( void ) { statement(s) return 0 ; }
/* Filename: hello.c Author: BT 414 Date written: 17/10/2011 Description: This program prints the greeting “Hello, World!” */ #include <stdio.h> int main ( void ) { printf ( “Hello, World!n” ) ; return 0 ; }
#include <stdio.h> int main() { int num; printf("Enter a number you want to check.n”); scanf("%d",&num); if((num%2)==0) //checking whether remainder is 0 or not. printf("%d is even.",num); else printf("%d is odd.",num); return 0; } Output 1 Enter a number you want to check. 25 25 is odd. Output 2 Enter a number you want to check. 2 2 is even.
C programming

C programming