C PROGRAMMING DAY 1

Topics Covered

Theory

Read from this presentation

Code Snippets

For giving output we use printf()

#include<stdio.h>

int main()             
{       
	printf("Hello World\n");
	return 0;
}

For taking input from the user we use scanf()

#include<stdio.h>

int main()             
{
	 int a,b;
    scanf("%d%d",&a,&b);
	 printf("\n"); 	 
	 printf("a=%d\tb=%d\n",a,b);
	 return 0;
}