2. Input and output your Roll no., marks, and percentage to an appropriate format.

Posted: September 17, 2012 in CSE Sem1, ECE Sem1, Lab 10A, Lab 10A
#include<stdio.h>
int main()
{
	int roll_no,marks,percentage;
	scanf("%d\t%d\t%d",&roll_no,&marks,&percentage);
	printf("Roll No. is %d\n",roll_no);
	printf("Marks is %d\n",marks);
	printf("Percentage is %d\n",percentage);
	return 0;
}
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s