Program for find average of five numbers #include <stdio. h> #include <conio. h> int main() { int a, b, c, d, e; int sum=0; float avg; clrscr(); Printf ("enter the five number "); scanf ("%d%d%d%d%d",&a, &b, &c, &d, &e) ; sum=a+b+c+d+e; avg=sum/5; printf ("sum = %d\n",sum); printf ("average = %f",avg); return 0; getch(); }
/**** PROGRAM Read n values (string) from keyboard display string list in alphabetical order ****/ #include<conio.h> #include<stdio.h> #include<string.h> int main() { int i,j,n; char s[20][20],t[20]; printf(HOW MANY COUNTRIES: ); scanf("%d",&n); printf(" ENTER ANY %d COUNTRY NAME \n",n); for(i=0;i<n;i++) { scanf("%s",s[i]); } for(i=0;i<n-1;i++) { for(j=i+1;j<n;j++) { if(strcmp(s[i],s[j])>0) { strcpy(t,s[i]); strcpy(s[i],s[j]); strcpy(s[j],t); } } } ...
search 'cmd' and Run it as 'Run as administrator' And then follow the following steps........ diskpart (press enter key) list disk (press enter key and so on type these words ) select disk 1 clean create partition primary format fs=ntfs quick (It can take less than 5 minutes so wait for complete 100% ) active exit and your pan drive is become bootable and ready to use
Comments
Post a Comment