WAP To Print Students Marks In Three Sub.(Out of 100)And print Percentage Also.

#include<iostream.h>
#include<conio.h>
#include<stdlib.h>
Void main()
{   float sub 1,sub 2,sub 3,marks,perc;
     clrscr();
     cout<<”Enter the marks obtained in three subjects”;
     cin>>sub 1>>sub 2>>sub 3;
     marks=sub 1+sub 2+sub 3;
     perc=(marks/300)*100;
     cout<<”\n”<<”The percentage marks are:”<<perc<<”%”;
     getch();

  }

Comments

Popular Posts