In: Computer Science
Write a declaration to store the following values in
an array rates : 12.9, 28.6, 11.4, 13.7, 9.5, 15.2, and 17.6.
Include the declaration in a program that displays the values in
the array by using pointer offset notation
#include<stdio.h>
int main(){
  
   float rate [] = {12.9, 28.6, 11.4, 13.7, 9.5,
15.2, 17.6}; //declaration to store the values
   int i;
   for(i=0;i<7;i++)
       printf("%.1f
",*(rate+i)); //pointer offset notation to display
the values
      
   return 0;
}

Output

NOTE: If you want to change something , please let me know through comments; I will surely revert back to you.
Please give a up vote .....
Thank you...