Write a c program to compute the average of 3 input quizzes then display the result?

1 answer

Answer

1202239

2026-05-01 02:05

+ Follow

#include <stdio.h>

#include<iOStream.h>

#include<conio.h>

#include<Windows.h>

int main()

{

int q1, q2, q3, ave;

printf ("Enter 1st quiz: ");

scanf ("%d", &q1);

printf ("Enter 2nd quiz: ");

scanf ("%d", &q2);

printf ("Enter 3rd quiz: ");

scanf ("%d", &q3);

ave=(q1+q2+q3/3);

printf ("Average quiz is %d", ave);

getch() ;

}

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.