answersLogoWhite

0

#include<stdio.h>

#include<conio.h>

void main()

{

int z,i,max=0;

clrscr();

for(i=1;i<=5;i++) //change the digit 5 to anything

{

printf("Enter a number":);

scanf("%d",&z);

if(z>max)

max=z;

}

printf("Largest number is=%d"z);

getch();

}

User Avatar

Wiki User

14y ago

What else can I help you with?