Programming Fundamental LAB

Date: 22 Oct 2014


Lab :

Program No# 01


#include <stdio.h>
int main()
{
int P;
 clrscr();
printf("Enter Value For P\n");
scanf(" %d",&P);
printf("You Have Enter %d Value For P",P);
getch();
return 0;
}

Program No# 02

#include <stdio.h>
int main()

{


float marks;
clrscr();
printf("Please Enter Student Marks\n");
scanf("%f",&marks);
printf("Marks Entered= %f",marks);
getch();
return 0;
}

Program No# 03


#include <stdio.h>

int main()
{

char grade,result;
float percentage;
int marks;
clrscr();
printf("Enter Student Marks\n");
scanf(" %d",&marks);
printf("Enter Student Percentage\n");
scanf(" %f",&percentage);
printf("Enter Student Grade\n");
scanf(" %c",&grade);
printf("Enter Student Result\n");
scanf(" %c",&result);
printf("Your Detail is\n");
printf("Your Marks Are= %d\n",marks);
printf("Your Percentage is=%f\n",percentage);
printf("Your Grade Is=%c",grade);
printf("Your Result is=%c",result);
     getch();
 return 0;
}





How to Upload This Program To Turbo C.

Copy the above Coding and paste in notepad, save with any name.c
for example save with Practive.c or Assign.c
you must add .c in the End of name.

Move the Coded File to C/TurboC++/Disk1/TurboC3/BIN and Paste the Coded File and Run in Turbo C :) enjoy