[C] Lab C Day2

June 26, 2012 11:59 am C, Private

null

#include <stdio.h>
main() {
	char a[20];
	char h[20];
	int b,c,d,e,f;
	char g;
	printf("Enter Name-surname :: ");
	scanf("%s %s",&a,&h);
	printf("Enter Age :: ");
	scanf("%d", &b);
	printf("Enter Height :: ");
	scanf("%d", &c);
	printf("Enter Weight :: ");
	scanf("%d", &d);
	printf("Sex :: ");
	scanf("%s", &g);
	printf("Enter Number 1 :: ");
	scanf("%d", &e);
	printf("Enter Number 2 :: ");
	scanf("%d", &f);
	//End Get Data
	//Start Output
	printf("Output \n");
	printf("Name is %s %s \n",a,h);
	printf("Age is %d \n", b);
	printf("Height and weight is %d and %d \n",c,d);
	printf("Sex is %c \n", g);
	printf("Total Number is %d \n",(e+f));
	//End Program :)
}