Ex: Write a C program to print following numbers series 7.5 9.5 15.5 27.5 47.5...How to write a C program to print following numbers series 7.5 9.5 15.5 27.5 47.5.....C program to print following numbers series 7.5 9.5 15.5 27.5 47.5.
Input from user:
Enter a number: 5
Expected output:
7.5 9.5 15.5 27.5 47.5
Program:
#include<stdio.h>
void main()
{
int i,no;
float z=7.5;
#include<stdio.h>
void main()
{
int i,no;
float z=7.5;
printf("Enter a number:\n");
scanf("%d",&no);
No comments:
Post a Comment
If you have any doubts, please discuss here...👇