basic structure

basic structure - {...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Write c++ program to read name,3 degree and calculating average for 10 student? #include<iostream.h> struct student { int d[3]; int av; char name[30]; }st[10]; void main() { for(int i=0;i<10;i++)
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: { cout&lt;&lt;&quot;name: &quot;;cin&gt;&gt;st[i].name ; cout&lt;&lt;&quot;enter 3 degree&quot;; cin&gt;&gt;st[i].d[0]&gt;&gt;st[i].d[1]&gt;&gt;st[i].d[23] ; st[i].av =(st[i].d[0]+st[i].d [1]+st[i].d [2])/3; } }...
View Full Document

This note was uploaded on 10/16/2010 for the course ENG 2266e taught by Professor Aliraqi during the Spring '10 term at 4.1.

Ask a homework question - tutors are online