ViewState with example in asp.net C#

Monday, February 21, 2011

How to get integer and character from input and display them in c


#include<stdio.h>
void main()
{




 int r,m;
 char variable;
 printf("Enter the grad of student");
 scanf("%c",&variable);
 printf("Enter the roll no of student");
 scanf("%d",&r);
 printf("Enter the marks of student");
 scanf("%d",&m);


// now display the student information




printf("\n");
printf("Rollno of student is %d",r);
printf("\n");
printf("Marks of student is %d",m);
printf("\n");
printf("Grade of student is%c", variable);
}

1 comment:

  1. Hi Friends i want to create the chat application please help me for this.. If anyone have chat server code please mail me on bansalsunnyp@gmail.com

    Thanks
    Regards
    Sunny Bansal

    ReplyDelete