C is the first programming language.c is high level, general parpose, structure programming language. There are 32 keys in c language e.g if,print,scan,else,for,do,etc.
Genral for or you can say sintex for c program should be follows: Header files
Void mani( )or int main( )
{
Variable declaration;
Statements;
enter 0; or getch ( );
}
For e.g 1.addition of 2 no.
#include <stdio.h>
int main()
{ int num1,num2,sum;
printf(“enter the first no;”);
scanf(“%d”,&num1);
printf(“enter the second no:”); scanf(“%d”,&num2); sum=num1+num2; printf(“Sum of two no is %d:”,sum);
getch ();
}
Very useful information
Thnx for these
LikeLike
Thanks
LikeLike