C PROGRAMMING DAY 1
Topics Covered
- Introduction to C programming
- Taking input using printf()
- Giving output using scanf()
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;
}