Answers for "what can do c programming"

4

who created c programming language

// Creator
/*  Creator Of C Language:
	Dennis Ritchie
*/


// Advantages And Diadvantages Of C.
/*

C is very Fast And Easy Language, Gives more control over the hardware
But it's not a safe language, What i mean by that is tht it's well, It
dosent support OOP(Object Oriented Programming) Which provides:
Encapsulation, Inheritance like features to make your program more
secure, but if you want to make some parts of your program non-secure
then you can write the code in C Language insted of C++, because C
is easy at leat 1000 times easier then C++, i have experience in C++
as well that's why i can clearly say that C is very is easy to learn
language.

*/
Posted by: Guest on August-05-2021
4

c programming examples

#include<stdio.h>
#include<conio.h>
void main()
{
	char choise;
	
	char hel;
	
	int p,k,g;
	
	int b,c,e;
	
	printf("\n Welcome to GM Program :) \n\n It's a one time usalbe program so you can start the program again and again");
	printf("\n\n Type 't' for Tables");
	printf("\n\n Type 'h' for ASMD is Add,Sub,Mul,Div");
	printf("\n\n Enter :- ");
	scanf("%c",&choise);
	
	switch(choise)
	{
		case 't':
		printf("\n\n Enter a number to make the table :- ");
		scanf("%d",&p);
		for(k=1;k<11;k++)
		{
			g=p*k;
			printf("\n\n %dx%d=%d",p,k,g);
		}
		break;
		case 'h':
		printf("\n\n Type 'a' for add \n\n Type 's' for sub \n\n Type 'm' for mul \n\n Type 'd' for div");
		printf("\n\n Enter :- ");
		scanf("%s",&hel);
		switch(hel)
		{
			case 'a':
			printf("\n\n Enter two number to add :- ");
			scanf("%d%d",&b,&c);
			e=b+c;
			printf("\n\n Your answer :- %d+%d=%d",b,c,e);
			break;
			case 's':
			printf("\n\n Enter two number to sub :- ");
			scanf("%d%d",&b,&c);
			e=b-c;
			printf("\n\n Your answer :- %d-%d=%d",b,c,e);
			break;
			case 'm':
			printf("\n\n Enter two number to mul :- ");
			scanf("%d%d",&b,&c);
			e=b*c;
			printf("\n\n Your answer :- %dx%d=%d",b,c,e);
			break;
			case 'd':
			printf("\n\n Enter two number to div :- ");
			scanf("%d%d",&b,&c);
			e=b/c;
			printf("\n\n Your answer :- %d/%d=%d",b,c,e);
			break;
	   }	
	}
	getch();	
}
/* program with switch and loop */
Posted by: Guest on July-23-2021

Code answers related to "Objective-C"

Browse Popular Code Answers by Language