CPNM Lecture 1 - Introduction
CPNM Lecture 1 - Introduction
Jadavpur University
2024
CPNM - Syllabus I
C Programming
Numerical Methods
for i in range(0,10)
print(i)
#include <stdio.h>
int main(void){
printf("Hello World\n");
return(0);
}
▶ #include<stdio.h>
⇒ includes information about C’s standard I/O library
▶ Program executable code goes inside main
▶ printf is a function from C’s standard I/O library, for
producing formatted output
▶ \n tells printf to advance to the next line after printing the
message
▶ return 0 ⇒ program returns the value 0 to the OS when it
terminates
Functions in C
#include <stdio.h>
int main(void){
return(0);
}