Code: #include<stdio.h> #include<conio.h> int main() { printf("Welcome to CFanatic"); return 0; getch(); }
Code: \*Arithmetic operations on two numbers*/ #include<stdio.h> #include<conio.h> void main() { int a=7,b=5; clrscr(); printf("%d \n",a+b); \\output=12; printf("%d \n",a-b); \\output=2; printf("%d \n",a*b); \\output=35; printf("%d \n",a/ b); \\output=1; (actually 7/5=1.4 but since we denoted it as integer decimal part will be truncated); priintf("%d \n",a%b); \\output=2 getch(); } these are the basic programs in c language